From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20002 invoked by alias); 19 Mar 2011 09:38:15 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28921 Received: (qmail 2438 invoked from network); 19 Mar 2011 09:38:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Nikolai Weibull Cc: zsh-workers@zsh.org Subject: Re: [PATCH 3/4] Fix git-branch -[dD] -r completion In-Reply-To: (Nikolai Weibull's message of "Sat, 19 Mar 2011 10:10:59 +0100") References: <1300484112-9392-1-git-send-email-now@bitwi.se> <1300484112-9392-4-git-send-email-now@bitwi.se> <87y64cgj4r.fsf@ft.bewatermyfriend.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Date: Sat, 19 Mar 2011 10:29:54 +0100 Message-ID: <87hbazh2zx.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Df-Sender: 430444 Nikolai Weibull wrote: > On Fri, Mar 18, 2011 at 23:26, Frank Terbeck wro= te: >> Hm, with this patch, this: >> >> % git branch -d -r >> >> works. But this: >> >> % git -r -d >> >> doesn't. >> >> I suppose, that's not intentional? > > Well, it depends on what you=E2=80=99re after. Writing -r first hints th= at > you want to list branches, not delete them. If you look at the > synopsis in the man page, that=E2=80=99s how I=E2=80=99ve done it. Does = anyone have a > strong opinion on how this should be done? I think _git should offer both ways simply because git accepts both ways. Further down the git-branch(1) manpage, it states "List or delete (if used with -d) [...]". So it's *with*, not *after*. IMHO, _git behaving that way would make sense. Regards, Frank