зеркало из https://github.com/microsoft/git.git
branch: change "--local" to "--list" in comment
There has never been a "git branch --local", this is just a typo for
"--list". Fixes a comment added in 23e714df91
(branch: roll
show_detached HEAD into regular ref_list, 2015-09-23).
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
71ca53e812
Коммит
ffdd02a55d
|
@ -726,7 +726,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
|
|||
print_current_branch_name();
|
||||
return 0;
|
||||
} else if (list) {
|
||||
/* git branch --local also shows HEAD when it is detached */
|
||||
/* git branch --list also shows HEAD when it is detached */
|
||||
if ((filter.kind & FILTER_REFS_BRANCHES) && filter.detached)
|
||||
filter.kind |= FILTER_REFS_DETACHED_HEAD;
|
||||
filter.name_patterns = argv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче