Re: git-scm.com refresh
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 8, 2012, 18:00 UTC
- Message-ID
- <7vpqaev9gt.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <m262c6h8ft.fsf@igel.home>
Andreas Schwab <schwab@linux-m68k.org> writes:
Show 14 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> I encountered another example yesterday after sending the above message
>> [*1*]. I was fixing one small bug, and had a commit that updates code and
>> adds a test vector. It is a single commit on top of the current branch
>> tip, which allegedly as a buggy code.
>>
>> Then I wanted to double check that the bug really existed before the fix.
>>
>> git checkout HEAD^
>> git show @{-1} t/ | git apply
>
> Alternative:
> git checkout @{-1} t/True in this case, but that is usable when "diff @{-1}^ @{-1}" happens to be the _only_ change to your current state, so it won't be a general substitute for the "diff | apply" pipeline.