public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH 1/2] bash: add git-branch options
@ 2008-03-04 18:00 SZEDER Gábor
  2008-03-04 18:00 ` [PATCH 2/2] bash: git-branch -d and -m lists only local branches SZEDER Gábor
  0 siblings, 1 reply; 3+ messages in thread
From: SZEDER Gábor @ 2008-03-04 18:00 UTC (permalink / raw)
  To: git; +Cc: gitster, spearce, SZEDER Gábor

Signed-off-by: SZEDER Gábor <szeder@ira•uka.de>
---
 contrib/completion/git-completion.bash |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8f70e1e..8d6733a 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -506,7 +506,16 @@ _git_bisect ()
 
 _git_branch ()
 {
-	__gitcomp "$(__git_refs)"
+	case "${COMP_WORDS[COMP_CWORD]}" in
+	--*=*)	COMPREPLY=() ;;
+	--*)
+		__gitcomp "
+			--color --no-color --verbose --abbrev= --no-abbrev
+			--track --no-track
+			"
+		;;
+	*)	__gitcomp "$(__git_refs)" ;;
+	esac
 }
 
 _git_bundle ()
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-05  5:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04 18:00 [PATCH 1/2] bash: add git-branch options SZEDER Gábor
2008-03-04 18:00 ` [PATCH 2/2] bash: git-branch -d and -m lists only local branches SZEDER Gábor
2008-03-05  5:51   ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox