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

Re: [PATCH 3/4] Fix git-branch -[dD] -r completion



On Sat, 19 Mar 2011, Nikolai Weibull wrote:

On Fri, Mar 18, 2011 at 23:26, Frank Terbeck wrote:
Hm, with this patch, this:

% git branch -d -r <tab>

works. But this:

% git -r -d <tab>

doesn't.

I suppose, that's not intentional?

Well, it depends on what you’re after. Writing -r first hints that you want to list branches, not delete them. If you look at the synopsis in the man page, that’s how I’ve done it. Does anyone have a strong opinion on how this should be done?

It should complete remote branches in both cases, since git accepts remote branch(es) to delete in both cases.

--
Best,
Ben


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