summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-08-21 00:38:20 +0000
committerClint Adams <clint@users.sourceforge.net>2008-08-21 00:38:20 +0000
commited34e682adff83223e30bf8d0317f08b3cc9db64 (patch)
tree3b03b512489e3fe8250db26df08f0a60af3eaec2
parentd5a328eafce0bb88fccc53c0164acfdfa1d32ac4 (diff)
downloadzsh-ed34e682adff83223e30bf8d0317f08b3cc9db64.tar.gz
zsh-ed34e682adff83223e30bf8d0317f08b3cc9db64.tar.xz
zsh-ed34e682adff83223e30bf8d0317f08b3cc9db64.zip
25493: allow -q to be used in all git checkout contexts.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index debd989ca..9681b683a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-08-21  Clint Adams  <clint@zsh.org>
 
+	* 25493: Completion/Unix/Command/_git: allow -q to be used in all
+	git checkout contexts.
+
 	* 25491: Completion/Unix/Command/_git: patch to improve
 	"git checkout" completion, from Mikael Magnusson.
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 38cabf72f..9b8aec0a1 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1549,8 +1549,8 @@ _git-checkout () {
         '*::file:->files' && ret=0
   else
     _arguments -C -S \
-      - switch-branch \
         '-q[suppress feedback messages]' \
+      - switch-branch \
         '-f[force a complete re-read]' \
         '-b[create a new branch based at given branch]: :__git_guard_branch-name' \
         {-t,--track}'[set up configuration so pull merges from the start point]' \