From 567733906210feaebce94675985eb1e77602bfd8 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 8 Feb 2018 15:12:39 +0000 Subject: unposted: _subversion: Support subcommands with hyphens in their names, such as 'shelf-list (shelves)' from upstream 1.10 development versions. --- ChangeLog | 6 ++++++ Completion/Unix/Command/_subversion | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 01f0733cb..741fcad60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-02-08 Daniel Shahaf + + * 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 * 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 -- cgit 1.4.1