Re: [PATCH] branch: delete now accepts '-' as branch name
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Feb 17, 2022, 17:13 UTC
- Message-ID
- <CAPig+cR0Ks2bnTRqs3uF4M+3q+n9X6pApBQ9HQTUq=zK5TpuXQ@mail.gmail.com>
- In-Reply-To
- <400A4D37-74EA-4F3B-BA3B-99FFDAE3CB3C@innova.no>
On Thu, Feb 17, 2022 at 7:51 AM Erlend Aasland <Erlend-A@innova.no> wrote:
Show 12 quoted lines
> > On 16 Feb 2022, at 20:03, Eric Sunshine <sunshine@sunshineco.com> wrote:
> > Patches implementing this behavior for `git branch -D` have been submitted previously but were rejected (if I recall correctly) since "delete" is a destructive operation, unlike other cases in which `-` is accepted. A relatively recent submission and ensuing discussion is at [1].
> >
> > [1]: https://lore.kernel.org/git/20200501222227.GE41612@syl.local/T/
>
> Thanks for the heads-up regarding previous discussions, Eric.
>
> Until now, I've just been using the @{-1} notation, but - is very much faster
> to type ;)
>
> There are no new arguments pro this feature, so I guess the conclusion from
> 2020 still stands :)Perhaps. Perhaps not. I may be misreading Junio's responses in this thread, but it didn't seem like he was necessarily opposed to the change. A documentation update as in [1] would be a good idea, though, if resubmitted.