diff options
author | Björn Gustavsson <bgustavsson@gmail.com> | 2009-10-17 13:33:38 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-10-28 10:36:43 +0300 |
commit | 93cf50a412e3ed988cbce07e2ba3a80841d3884b (patch) | |
tree | 11d32480c1a182719f82710f067374f98d5fced0 | |
parent | 3c1ca015281e90541a7baf092448556ec6c588a0 (diff) |
bash: complete more options for 'git rebase'
Complete all long options for 'git rebase' except --no-verify
(probably used very seldom) and the long options corresponding
to -v, -q, and -f.
Signed-off-by: Björn Gustavsson <bgustavsson@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | contrib/completion/git-completion.bash | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index d3fec32997..7c7318c436 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1323,8 +1323,18 @@ _git_rebase () fi __git_complete_strategy && return case "$cur" in + --whitespace=*) + __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}" + return + ;; --*) - __gitcomp "--onto --merge --strategy --interactive" + __gitcomp " + --onto --merge --strategy --interactive + --preserve-merges --stat --no-stat + --committer-date-is-author-date --ignore-date + --ignore-whitespace --whitespace= + " + return esac __gitcomp "$(__git_refs)" |