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

Re: RFC: [PATCH] Completion/Unix/Command/_git: replace a few "*::" with "*:"



On 25 Feb 2019, at 04:04, Daniel Hahler <genml+zsh-workers@xxxxxxxxxx> wrote:
>As for _git_checkout, the following appears to work better:
>...
>-    '*:: :->branch-or-tree-ish-or-file' && ret=0
>+    '1: :->first-arg' \
>+    '*: :->other-arg' && ret=0

I only played with it for a second, but yes, that seems better to me. It does
produce a 'not a git repository' message when you complete options, though,
which is slightly irritating. I guess you could re-add that -* prefix check
there, can't think of anything nicer right now

Your white space is broken, also. That file does have some tabs in it, but
mostly it's spaces

dana



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