Skip to content

Commit ffdd02a

Browse files
avargitster
authored andcommitted
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 23e714d (branch: roll show_detached HEAD into regular ref_list, 2015-09-23). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 71ca53e commit ffdd02a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
726726
print_current_branch_name();
727727
return 0;
728728
} else if (list) {
729-
/* git branch --local also shows HEAD when it is detached */
729+
/* git branch --list also shows HEAD when it is detached */
730730
if ((filter.kind & FILTER_REFS_BRANCHES) && filter.detached)
731731
filter.kind |= FILTER_REFS_DETACHED_HEAD;
732732
filter.name_patterns = argv;

0 commit comments

Comments
 (0)