diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_perforce | 12 |
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 : \ |