@matheusbsbs / matheus-bagliano / commits / 93cf50a412
Fork 0

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>

Björn Gustavsson committed Oct 17, 2009 at 11:33 UTC 93cf50a412e3ed988cbce07e2ba3a80841d3884b
1 file changed +11 -1
contrib/completion/git-completion.bash
+11 -1
@@ -1323,8 +1323,18 @@ _git_rebase ()
1323 fi
1324 __git_complete_strategy && return
1325 case "$cur" in
1326 + --whitespace=*)
1327 + __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}"
1328 + return
1329 + ;;
1330 --*)
1327 - __gitcomp "--onto --merge --strategy --interactive"
1331 + __gitcomp "
1332 + --onto --merge --strategy --interactive
1333 + --preserve-merges --stat --no-stat
1334 + --committer-date-is-author-date --ignore-date
1335 + --ignore-whitespace --whitespace=
1336 + "
1337 +
1338 return
1339 esac
1340 __gitcomp "$(__git_refs)"