summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-12-01 17:04:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-12-01 17:04:37 (GMT)
commitef8f6210457a3af5a1c36ba066cb4f2b5a8529fa (patch)
treed97f7682059e643e6347d61fa249d76cbac1e266 /contrib
parent3c3e5d0ea2158bdc4f2244adff08504e50653d7c (diff)
parentc1ce9c06d0a0e8ad473bdbe800e8e089b8314e24 (diff)
downloadgit-ef8f6210457a3af5a1c36ba066cb4f2b5a8529fa.zip
git-ef8f6210457a3af5a1c36ba066cb4f2b5a8529fa.tar.gz
git-ef8f6210457a3af5a1c36ba066cb4f2b5a8529fa.tar.bz2
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=`
Diffstat (limited to 'contrib')
-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 47c5510..ba5528d 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"