git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: J. Bruce Fields
Message 10 of 10 in “How to say HEAD~"all the way back - 1"”
  1. Bill LearFeb 22, 2007
  2. Petr BaudisFeb 22, 2007
  3. Jakub NarebskiFeb 23, 2007
  4. Bill LearFeb 23, 2007
  5. Junio C HamanoFeb 24, 2007
  6. Junio C HamanoFeb 22, 2007
  7. Bill LearFeb 22, 2007
  8. Junio C HamanoFeb 22, 2007
  9. J. Bruce FieldsFeb 22, 2007
  10. Johannes SchindelinFeb 22, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.