Skip to content

Commit

Permalink
completion: add missing options to show-branch and show
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and Junio C Hamano committed May 17, 2009
1 parent da4b3e8 commit 076c323
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ _git_show ()
return
;;
--*)
__gitcomp "--pretty= --format=
__gitcomp "--pretty= --format= --abbrev-commit --oneline
$__git_diff_common_options
"
return
Expand All @@ -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
;;
Expand Down

0 comments on commit 076c323

Please sign in to comment.