Re: [PATCH] branch: delete now accepts '-' as branch name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On 21 Feb 2022, at 20:20, Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote:
> 
> On Mon, Feb 21 2022, Junio C Hamano wrote:
> 
>> Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> writes:
>> 
>>>> Continuing the "thinking aloud" a bit, I _think_ this tells us these
>>>> things:
>>>> 
>>>> * @{-1} has way too many letters to type to be liked by users, who
>>>>   won't learn or remember what they do not appreciate (and do not
>>>>   blame them---it is a bad notation).

+1

>>>> * @{-<n>} may have been a generalized way that satisfied geeky mind
>>>>   while being implemented, but the users only need the "last one"
>>>>   and no such generalization.

That harmonises with my usage.

> FWIW I often use @{-2}, @{-3} or equivalent, but never @{-28} or
> whatever.

Ditto; I mostly (at least 95% of the time) only use @{-1}. I've used other
small indices sporadically, but never a two-digit index.

> I think we should be careful to squat on namespaces needlessly, but if
> we can't think of a reason for why we wouldn't make typing some of these
> shortcuts easier...

IMO, it's not a shortcut if it's a hassle to type ;)


IIRC, the GitHub "Git Highlights" Blog has promoted the '-' trick every now and then.


> I haven't hacked it up (and won't any time soon), Erlend: are you interested? :)

There's a lot of suggestions floating around now, but sure, I'd be happy to give one of
them a go; at least as a proof-of-concept :)



Erlend




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux