Merge branch 'dl/complete-rebase-onto'
The completion script (in contrib/) learned that the "--onto" option of "git rebase" can take its argument as the value of the option. * dl/complete-rebase-onto: completion: learn to complete `git rebase --onto=`
This commit is contained in:
@ -2043,6 +2043,10 @@ _git_rebase ()
|
|||||||
__gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
|
__gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--onto=*)
|
||||||
|
__git_complete_refs --cur="${cur##--onto=}"
|
||||||
|
return
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
__gitcomp_builtin rebase "" \
|
__gitcomp_builtin rebase "" \
|
||||||
"$__git_rebase_interactive_inprogress_options"
|
"$__git_rebase_interactive_inprogress_options"
|
||||||
|
Reference in New Issue
Block a user