about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-14 15:48:53 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-14 15:48:53 +0000
commite77c7c284464aadb15ddaf270d26f5b534d04830 (patch)
tree043d72e1bd2b0a3d350ed835cd5d9414a5152e5c
parentb86c191af5689229c398ecdc0684f3ccbf8a108d (diff)
downloadzsh-e77c7c284464aadb15ddaf270d26f5b534d04830.tar.gz
zsh-e77c7c284464aadb15ddaf270d26f5b534d04830.tar.xz
zsh-e77c7c284464aadb15ddaf270d26f5b534d04830.zip
unposted: handle p4 protects completion
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_perforce12
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3d833a318..cd43d2313 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-05-14  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Completion/Unix/Command/_perforce: handle
+	p4 protects.
+
 	* 25025: Doc/Zsh/builtins.yo, Src/builtin.c, Src/math.c,
 	Src/utils.c: more checks to ensure radix for arithmetic
 	constants is between 2 and 36 inclusive.
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index 271521141..a1308ffa5 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -2127,6 +2127,18 @@ _perforce_cmd_protect() {
 }
 
 
+(( $+functions[_perforce_cmd_protects] )) ||
+_perforce_cmd_protects() {
+  _arguments -s : \
+    '(-g -u)-a[show for all users]' \
+    '(-a -u)-g[select by group]:perforce group:_perforce_groups' \
+    '(-a -g)-u[select by user]:perforce user:_perforce_users' \
+    '-h[limit to host]:host:_perforce_hosts' \
+    '-m[single word summary]' \
+    '*:file:_perforce_files'
+}
+
+
 (( $+functions[_perforce_cmd_reopen] )) ||
 _perforce_cmd_reopen() {
   _arguments -s : \