Skip to content

Commit 585b96b

Browse files
szedergitster
authored andcommitted
completion: remove 'help' duplicate from porcelain commands
The list of all git commands is computed from the output of 'git help -a', which already includes 'help', so there is no need to explicitly add it once more when computing the list of porcelain commands. Note that 'help' wasn't actually offered twice because of this, because Bash filters duplicates from possible completion words. Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c7a786 commit 585b96b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ __git_list_porcelain_commands ()
585585
{
586586
local i IFS=" "$'\n'
587587
__git_compute_all_commands
588-
for i in "help" $__git_all_commands
588+
for i in $__git_all_commands
589589
do
590590
case $i in
591591
*--*) : helper pattern;;

0 commit comments

Comments
 (0)