Re: What actually is a branch?
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jul 9, 2021, 15:08 UTC
- Message-ID
- <60e8666c8707f_2153208c0@natae.notmuch>
- In-Reply-To
- <084a355e-95cd-5c84-2fa5-a901da3e0e49@mfriebe.de>
Martin wrote:
Show 8 quoted lines
> While writing a mail on the origin topic (improve docs), I noticed that
> the word "branch-ish" is still free.
>
> Which would be anything that resolves to a "branch reference".
>
> Currently this only is
> - branch name.
> - branchname@{upstream}Actually @ and HEAD too.
I don't particularly see much value in that definition since I always use a committish when I write a branch name, and the fact that `git switch` expects branches is one of the things that bothers me about it.
Either way I don't think it makes much sense to do `git switch branchnae@{upstream}`, and even less `git switch @`.
-- Felipe Contreras