Skip to contentSkip to conversation

completion: add missing options to show-branch and show

PATCH New Stephen Boyd 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 completion: add missing options to show-branch and show

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

---
 contrib/completion/git-completion.bash |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
contrib/completion/git-completion.bash +2 -2
index ad26b7c..50eda85 100755
@@ -1825,7 +1825,7 @@ _git_show ()
 		return
 		;;
 	--*)
-		__gitcomp "--pretty= --format=
+		__gitcomp "--pretty= --format= --abbrev-commit --oneline
 			$__git_diff_common_options
 			"
 		return
@@ -1842,7 +1842,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
 		;;
Signature · 1 line
1.6.3.1.9.g95405b