mirror of
https://github.com/git/git
synced 2024-08-28 03:59:25 +00:00
Merge branch 'fw/complete-cmd-idx-fix'
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
This commit is contained in:
commit
a38c4c02e5
|
@ -3513,6 +3513,7 @@ fi
|
||||||
__git_func_wrap ()
|
__git_func_wrap ()
|
||||||
{
|
{
|
||||||
local cur words cword prev
|
local cur words cword prev
|
||||||
|
local __git_cmd_idx=0
|
||||||
_get_comp_words_by_ref -n =: cur words cword prev
|
_get_comp_words_by_ref -n =: cur words cword prev
|
||||||
$1
|
$1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue