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:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user