* PATCH: _subversion prop(get|edit)
@ 2007-04-19 20:23 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-04-19 20:23 UTC (permalink / raw)
To: zsh-workers
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 "$@" ;;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-04-19 20:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-19 20:23 PATCH: _subversion prop(get|edit) Clint Adams
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).