Skip to content

Commit 076c323

Browse files
bebarinogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent da4b3e8 commit 076c323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ _git_show ()
18041804
return
18051805
;;
18061806
--*)
1807-
__gitcomp "--pretty= --format=
1807+
__gitcomp "--pretty= --format= --abbrev-commit --oneline
18081808
$__git_diff_common_options
18091809
"
18101810
return
@@ -1821,7 +1821,7 @@ _git_show_branch ()
18211821
__gitcomp "
18221822
--all --remotes --topo-order --current --more=
18231823
--list --independent --merge-base --no-name
1824-
--sha1-name --topics --reflog
1824+
--sha1-name --sparse --topics --reflog
18251825
"
18261826
return
18271827
;;

0 commit comments

Comments
 (0)