From: Junio C Hamano Date: Tue, 08 May 2012 18:00:50 GMT Subject: Re: git-scm.com refresh Message-ID: <7vpqaev9gt.fsf@alter.siamese.dyndns.org> In-Reply-To: Andreas Schwab writes: > Junio C Hamano 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.