X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/b99d26914007cd902b92c5fe0524a233d778a724..44edd6d7ed904bde1cf07aa54f201f437f5e380b:/_vcsh diff --git a/_vcsh b/_vcsh index bc1a7b9..1661e19 100644 --- a/_vcsh +++ b/_vcsh @@ -24,7 +24,7 @@ function _vcsh-enter () { } function _vcsh-foreach () { - _dispatch git git + _dispatch vcsh-foreach git } function _vcsh-help () { @@ -138,10 +138,11 @@ function _vcsh () { if ! (( ${+functions[_vcsh-$vcshcommand]} )); then # There is no handler function, so this is probably the name # of a repository. Act accordingly. + # FIXME: this may want to use '_dispatch vcsh git' GIT_DIR=$VCSH_REPO_D/$words[1].git _dispatch git git else curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:" - _call_function ret _vcsh-${vcshcommand} + _call_function ret _vcsh-${vcshcommand} && (( ret )) fi fi fi