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

Re: [PATCH 2/3] Completion/Unix/Command/_git: fix shortlog completer



On Apr 20, 10:43pm, Ramkumar Ramachandra wrote:
}
} In the meantime, can someone tell me how to test _git quickly? I don't
} want to have to re-compile, install, and start a new shell to test a
} small change.

Assuming your current working directory is the root of your git pull,

    fpath=($PWD/{Completion{,/**/_*(N:h)},Functions/*(/N)} $fpath)
    unfunction -m _git\*
    autoload -Uz $^fpath/_git*(N:t)

will probably do it.  There's a similar trick for module_path if you
need to test compiled modules, but it also requires creating module
aliases to satisfy inter-module naming dependencies.



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