1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 22:11:54 +02:00

unposted: handle p4 sizes and license completion

This commit is contained in:
Peter Stephenson 2008-05-14 15:56:50 +00:00
parent e77c7c2844
commit 5e373b83a5
2 changed files with 21 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2008-05-14 Peter Stephenson <pws@csr.com>
* unposted: Completion/Unix/Command/_perforce: also p4 sizes,
p4 license.
* unposted: Completion/Unix/Command/_perforce: handle
p4 protects.

View file

@ -2006,6 +2006,14 @@ _perforce_cmd_labelsync() {
}
(( $+functions[_perforce_cmd_license] )) ||
_perforce_cmd_license() {
_arguments -s : \
'-o[write license to stdout]' \
'-i[read license from stdin]'
}
(( $+functions[_perforce_cmd_lock] )) ||
_perforce_cmd_lock() {
_arguments -s : \
@ -2207,6 +2215,16 @@ _perforce_cmd_set() {
}
(( $+functions[_perforce_cmd_sizes] )) ||
_perforce_cmd_sizes() {
_arguments -s : \
'-a[show for all revisions]' \
'-b[set blocksize]:blocksize in bytes: ' \
'-s[sum the file sizes]' \
'*:file:_perforce_files -tR'
}
(( $+functions[_perforce_cmd_spec] )) ||
_perforce_cmd_spec() {
_arguments -s : \