summaryrefslogtreecommitdiffstats
path: root/checkout.h
Commit message (Collapse)AuthorAgeFilesLines
* checkout: pass the "num_matches" up to callersÆvar Arnfjörð Bjarmason2018-06-111-1/+2
| | | | | | | | | Pass the previously added "num_matches" struct value up to the callers of unique_tracking_name(). This will allow callers to optionally print better error messages in a later change. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* checkout.h: wrap the arguments to unique_tracking_name()Ævar Arnfjörð Bjarmason2018-06-111-1/+2
| | | | | | | | The line was too long already, and will be longer still when a later change adds another argument. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* checkout: factor out functions to new lib fileThomas Gummerer2017-11-271-0/+13
Factor the functions out, so they can be re-used from other places. In particular these functions will be re-used in builtin/worktree.c to make git worktree add dwim more. While there add some docs to the function. Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>