Re: [PATCH 5/9] t1508 (at-combinations): document @{N} versus HEAD@{N}
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 2, 2013, 17:34 UTC
- Message-ID
- <CAMP44s1akBT3ZqD5iODjm-AXRMwqsz7K4HCdR5uz07YCLs54yQ@mail.gmail.com>
- In-Reply-To
- <CALkWK0n9dOrn_whASyWnx49zwNZV_z-4mstyorN1DTSfKpzfsg@mail.gmail.com>
On Thu, May 2, 2013 at 12:30 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 12 quoted lines
> Felipe Contreras wrote:
>>> +test_expect_success 'switch to old-branch' '
>>> + git checkout old-branch
>>> +'
>>> +
>>> +check HEAD refs/heads/old-branch
>>> +check "HEAD@{1}" commit new-two
>>> +check "@{1}" commit old-one
>>
>> And here we are testing something completely different.
>
> How? I'm showing that HEAD@{1} can be different from @{1}.Never mind, I thought you were testing detached HEAD checkouts.
-- Felipe Contreras