summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-05-17 03:42:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-17 05:46:22 (GMT)
commit076c32370d8a6ac2fb57b2a55c674942e106f8ab (patch)
treec32ee7c7d284cb8d5d101afe8a34272a8ff51068 /contrib
parentda4b3e8c28b1dc2b856d2555ac7bb47ab712598c (diff)
downloadgit-076c32370d8a6ac2fb57b2a55c674942e106f8ab.zip
git-076c32370d8a6ac2fb57b2a55c674942e106f8ab.tar.gz
git-076c32370d8a6ac2fb57b2a55c674942e106f8ab.tar.bz2
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index dd6cd25..a0c5794 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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
;;