completion: add missing options to show-branch and show

Add --oneline and --abbrev-commit to show and --sparse to show-branch.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Stephen Boyd 2009-05-16 20:42:43 -07:00 committed by Junio C Hamano
parent da4b3e8c28
commit 076c32370d

View File

@ -1804,7 +1804,7 @@ _git_show ()
return
;;
--*)
__gitcomp "--pretty= --format=
__gitcomp "--pretty= --format= --abbrev-commit --oneline
$__git_diff_common_options
"
return
@ -1821,7 +1821,7 @@ _git_show_branch ()
__gitcomp "
--all --remotes --topo-order --current --more=
--list --independent --merge-base --no-name
--sha1-name --topics --reflog
--sha1-name --sparse --topics --reflog
"
return
;;