summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Stephen Boyd <bebarino@gmail.com>2009-05-16 20:42:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-05-16 22:46:22 -0700
commit076c32370d8a6ac2fb57b2a55c674942e106f8ab (patch)
treec32ee7c7d284cb8d5d101afe8a34272a8ff51068 /contrib
parentdir.c: clean up handling of 'path' parameter in read_directory_recursive() (diff)
downloadtgif-076c32370d8a6ac2fb57b2a55c674942e106f8ab.tar.xz
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 dd6cd250e3..a0c5794828 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
;;