From e77c7c284464aadb15ddaf270d26f5b534d04830 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 14 May 2008 15:48:53 +0000 Subject: unposted: handle p4 protects completion --- Completion/Unix/Command/_perforce | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Completion') 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 : \ -- cgit 1.4.1