From: Björn Gustavsson Date: Sat, 17 Oct 2009 09:33:38 +0000 (+0200) Subject: bash: complete more options for 'git rebase' X-Git-Tag: v1.6.6-rc0~94 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93cf50a412e3ed988cbce07e2ba3a80841d3884b;p=git.git 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 Acked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index d3fec3299..7c7318c43 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)"