Browse Source

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>
maint
Björn Gustavsson 15 years ago committed by Junio C Hamano
parent
commit
93cf50a412
  1. 12
      contrib/completion/git-completion.bash

12
contrib/completion/git-completion.bash

@ -1323,8 +1323,18 @@ _git_rebase () @@ -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)"

Loading…
Cancel
Save