Re: [PATCH] Add new @ shortcut for HEAD
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Apr 29, 2013, 20:38 UTC
- Message-ID
- <CAMP44s044amTqdshNAm=EaT1UgEtKU6yLWAxsk3GwCcX+GQKxQ@mail.gmail.com>
- In-Reply-To
- <7v1u9thyq9.fsf@alter.siamese.dyndns.org>
On Mon, Apr 29, 2013 at 3:24 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> But @ is not used just for reflogs, there's @{now}, @{-1}, @{upstream}.
>
> True. @{now} is a reflog, @{-1} is also but @{u} is not. It is a
> kitchen sink and you shouldn't have to have reflog on a branch in
> order to use @{upstream} (I didn't check---I wouldn't be surprised
> if the code for @{u} is buggy and barfed).It shouldn't matter if @{u} is buggy or not (which I doubt), @ is basically @{nothing}, or @{same-commit}, whether a reflog is present or not doesn't really matter. HEAD@ -> HEAD, master@ -> master, and so on.
-- Felipe Contreras