Re: How to say HEAD~"all the way back - 1"
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 22, 2007, 20:53 UTC
- Message-ID
- <Pine.LNX.4.63.0702222153010.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20070222204737.GC18622@fieldses.org>
Hi,
On Thu, 22 Feb 2007, J. Bruce Fields wrote:
Show 6 quoted lines
> I can do something like > > git rev-list origin..topic | tail -2 | head -1 > > but in practice it's faster just to fire up gitk origin.. and > cut-n-paste object id's.
Or something like
git rev-list --reverse origin..topic | sed -n 2p
But that's even longer! (Although conceptually shorter...)
Ciao, Dscho