|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21585/root/usr/share/zsh/4.2.6/functions/ |
Upload File : |
#compdef co ci rcs rcsdiff merge
local ret=1
if [[ $service = merge ]]; then
_arguments \
'-E[output unmerged changes, bracketing conflicts]' \
'-A[output conflicts using the -A style of diff3]' \
'-e[output unmerged changes]' \
'*-L[specify labels for corresponding files]' \
'-p[send results to standard output]' \
'-q[do not warn about conflicts (quiet)]' \
'-V[display version information]' \
'1:file:_files' \
'2:original file:_files' \
'3:modified file:_files' && ret=0
elif [[ -d RCS && $service != ci ]]; then
local rep expl
rep=(RCS/*,v(D:t:s/\,v//))
(( $#rep )) && _wanted files expl 'RCS file' compadd -a rep && ret=0
fi
[[ $service = ci || $service = rcs || ret -eq 1 ]] && _files && ret=0
return ret