From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Subject: PATCH: _subversion prop(get|edit)
Date: Thu, 19 Apr 2007 16:23:58 -0400 [thread overview]
Message-ID: <20070419202358.GA9752@scowler.net> (raw)
Index: Completion/Unix/Command/_subversion
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_subversion,v
retrieving revision 1.23
diff -u -r1.23 _subversion
--- Completion/Unix/Command/_subversion 13 Mar 2007 18:19:29 -0000 1.23
+++ Completion/Unix/Command/_subversion 19 Apr 2007 20:22:34 -0000
@@ -72,6 +72,12 @@
'*:file:_files -g "*(e:_svn_controlled:)"'
)
;;
+ (propget|propedit)
+ args+=(
+ '1:property name:_svn_props'
+ '2:target: _alternative "files:file:_files" "urls:URL:_svn_urls"'
+ )
+ ;;
(propset)
args=(
':propname:(svn:ignore svn:keywords svn:executable svn:eol-style svn:mime-type svn:externals svn:needs-lock)'
@@ -234,6 +240,14 @@
compadd "$@" -k _svnadmin_cmds || compadd "$@" ${(s.:.)_svnadmin_cmds}
}
+(( $+functions[_svn_props] )) ||
+_svn_props() {
+ local properties
+
+ properties=( ${${(M)${(f)"$(svn proplist 2>/dev/null)"}:# [^ ]*}# } )
+ compadd "$@" -a properties && return 0
+}
+
_subversion () {
case $service in
(svn) _svn "$@" ;;
reply other threads:[~2007-04-19 20:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070419202358.GA9752@scowler.net \
--to=clint@zsh.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).