Skip to content

Commit f16784c

Browse files
committed
Merge branch 'fw/complete-cmd-idx-fix' into next
Recent update to completion script (in contrib/) broke those who use the __git_complete helper to define completion to their custom command. * fw/complete-cmd-idx-fix: completion: bash: fix late declaration of __git_cmd_idx
2 parents fb3bf5a + cea2321 commit f16784c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3513,6 +3513,7 @@ fi
35133513
__git_func_wrap ()
35143514
{
35153515
local cur words cword prev
3516+
local __git_cmd_idx=0
35163517
_get_comp_words_by_ref -n =: cur words cword prev
35173518
$1
35183519
}

0 commit comments

Comments
 (0)