summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-09-01 20:38:03 +0000
committerClint Adams <clint@users.sourceforge.net>2008-09-01 20:38:03 +0000
commitfd2f37d84b7456f0d4dbfc15111ef4ae5ab2131a (patch)
tree4185a31ea1bf8b15d83daeff49533bb0a5468013
parenta156e4714e6b353ef372a9149beb069b78d9a0b6 (diff)
downloadzsh-fd2f37d84b7456f0d4dbfc15111ef4ae5ab2131a.tar.gz
zsh-fd2f37d84b7456f0d4dbfc15111ef4ae5ab2131a.tar.xz
zsh-fd2f37d84b7456f0d4dbfc15111ef4ae5ab2131a.zip
Mikael Magnusson: 25590: update "git add" completion.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git9
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b860c3b2d..cfe184193 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-09-01  Clint Adams  <clint@zsh.org>
 
+	* Mikael Magnusson: 25590: Completion/Unix/Command/_git:
+	update "git add" completion.
+
 	* Frank Terbeck: 25588: Completion/Unix/Command/_git: add
 	--no-pager option to git completion.
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 44030aed4..293a479fb 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1322,12 +1322,13 @@ _git-add () {
   declare -A opt_args
 
   _arguments -C -S \
-    '-n[do not actually add files; only show which ones would be added]' \
-    '-v[show files as they are added]' \
-    '-f[allow adding otherwise ignored files]' \
+    '(-n --dry-run)'{-n,--dry-run}'[do not actually add files; only show which ones would be added]' \
+    '(-v --verbose)'{-v,--verbose}'[show files as they are added]' \
+    '(-f --force)'{-f,--force}'[allow adding otherwise ignored files]' \
     '(-i --interactive : -)'{-i,--interactive}'[add contents interactively to the index]' \
     '(-p --patch : -)'{-p,--patch}'[like -i but go directly into patch mode for specified files]' \
-    '-u[Update only files git already knows about]' \
+    '(-u --update)'{-u,--update}'[update only files git already knows about]' \
+    '(-A --all)'{-A,--all}'[act as both add . and add -u]' \
     '--refresh[do not add files, but refresh their stat() info in the index]' \
     '--ignore-errors[continue adding if an error occurs]' \
     '*:file:->files' && ret=0