summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2018-02-08 15:12:39 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-02-08 15:12:59 +0000
commit567733906210feaebce94675985eb1e77602bfd8 (patch)
treea1013204e5bece514bed9ebb4172554520823f11
parentdd8e55c46be98714fa16d2a56a46d5d28cbf13f5 (diff)
downloadzsh-567733906210feaebce94675985eb1e77602bfd8.tar.gz
zsh-567733906210feaebce94675985eb1e77602bfd8.tar.xz
zsh-567733906210feaebce94675985eb1e77602bfd8.zip
unposted: _subversion: Support subcommands with hyphens in their names, such as 'shelf-list (shelves)' from upstream 1.10 development versions.
-rw-r--r--ChangeLog6
-rw-r--r--Completion/Unix/Command/_subversion2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 01f0733cb..741fcad60 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-02-08  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* unposted: Completion/Unix/Command/_subversion: Support
+	subcommands with hyphens in their names, such as 'shelf-list
+	(shelves)' from upstream 1.10 development versions.
+
 2018-02-07  Oliver Kiddle  <okiddle@yahoo.co.uk>
 
 	* Christian Hesse: 42333: Completion/Unix/Command/_git: Starting
diff --git a/Completion/Unix/Command/_subversion b/Completion/Unix/Command/_subversion
index be1f42f85..b7e10c06b 100644
--- a/Completion/Unix/Command/_subversion
+++ b/Completion/Unix/Command/_subversion
@@ -34,7 +34,7 @@ _svn () {
     typeset -gHA _svn_cmds
     if _cache_invalid svn-cmds || ! _retrieve_cache svn-cmds; then
       _svn_cmds=(
-	${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
+	${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z-]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
       )
       if (( $? == 0 )); then
         _store_cache svn-cmds _svn_cmds