about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-01-11 21:06:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-01-11 21:06:28 +0000
commit298eb1a82c403fd374f31ba2b32f8dc6f3cfad74 (patch)
tree16c8e505e1cfbf511f175b8e292e22551debc43e /Completion
parentb24d545294507a5af5a63880282247042d934c9e (diff)
downloadzsh-298eb1a82c403fd374f31ba2b32f8dc6f3cfad74.tar.gz
zsh-298eb1a82c403fd374f31ba2b32f8dc6f3cfad74.tar.xz
zsh-298eb1a82c403fd374f31ba2b32f8dc6f3cfad74.zip
N.J.Mann: users/12420: completion for cvs commit -f
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_cvs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_cvs b/Completion/Unix/Command/_cvs
index c5fd75050..01edbd30e 100644
--- a/Completion/Unix/Command/_cvs
+++ b/Completion/Unix/Command/_cvs
@@ -170,7 +170,16 @@ _cvs_commit() {
     '(-F)-m+[message]:message:_cvs_m' \
     '(-m)-F+[message file]:log message file:_files' \
     '-r+[specify revision]:tag:_cvs_revisions' \
-    '*:modified file:_cvs_files_modified'
+    '*:modified file:_cvs_commit_arg'
+}
+
+(( $+functions[_cvs_commit_arg] )) ||
+_cvs_commit_arg() {
+  if (( $+opt_args[-f] )); then
+    _cvs_files
+  else
+    _cvs_files_modified
+  fi
 }
 
 (( $+functions[_cvs_diff] )) ||