mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 03:11:15 +02:00
unposted: _subversion: Support subcommands with hyphens in their names, such as 'shelf-list (shelves)' from upstream 1.10 development versions.
This commit is contained in:
parent
dd8e55c46b
commit
5677339062
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2018-02-07 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||||
|
|
||||||
* Christian Hesse: 42333: Completion/Unix/Command/_git: Starting
|
* Christian Hesse: 42333: Completion/Unix/Command/_git: Starting
|
||||||
|
|
|
@ -34,7 +34,7 @@ _svn () {
|
||||||
typeset -gHA _svn_cmds
|
typeset -gHA _svn_cmds
|
||||||
if _cache_invalid svn-cmds || ! _retrieve_cache svn-cmds; then
|
if _cache_invalid svn-cmds || ! _retrieve_cache svn-cmds; then
|
||||||
_svn_cmds=(
|
_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
|
if (( $? == 0 )); then
|
||||||
_store_cache svn-cmds _svn_cmds
|
_store_cache svn-cmds _svn_cmds
|
||||||
|
|
Loading…
Reference in a new issue