Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: git-svn completion issue (patch)



On 16/10/2007, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> % git-svn <tab>
> ---- no match for: `command'
>
> I opened up _git to have a look, it seems it checks if $state is
> command, then declares an array $commands, which it then goes ahead
> and never uses for anything. I don't know exactly what incantation of
> _arguments or similar needs to be done here so no patch this time.

I think I figured it out, it at least seems to work correctly.

http://git.mikachu.ath.cx/?p=zsh-cvs.git;a=commitdiff_plain;h=gitsvn

--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -2345,6 +2345,7 @@ _git-svn () {
         'set-tree:commit given commit or tree to SVN repository'
         'show-ignore:output corresponding .gitignore file of svn:ignore'
         'commit-diff:commit diff of two tree-ishs')
+        _describe -t commands command commands && ret=0
       ;;
     (options)
       declare -a arguments


-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author