summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-12-01 09:04:37 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-01 09:04:37 -0800
commitef8f6210457a3af5a1c36ba066cb4f2b5a8529fa (patch)
treed97f7682059e643e6347d61fa249d76cbac1e266
parentMerge branch 'tg/stash-refresh-index' (diff)
parentcompletion: learn to complete `git rebase --onto=` (diff)
downloadtgif-ef8f6210457a3af5a1c36ba066cb4f2b5a8529fa.tar.xz
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=`
-rw-r--r--contrib/completion/git-completion.bash4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 47c551091f..ba5528d174 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2043,6 +2043,10 @@ _git_rebase ()
__gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
return
;;
+ --onto=*)
+ __git_complete_refs --cur="${cur##--onto=}"
+ return
+ ;;
--*)
__gitcomp_builtin rebase "" \
"$__git_rebase_interactive_inprogress_options"