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

Re: How to say HEAD~"all the way back - 1"

From
Petr Baudis <pasky@suse.cz>
Date
Feb 22, 2007, 19:36 UTC
Message-ID
<20070222193625.GA4489@pasky.or.cz>
In-Reply-To
<17885.60477.53356.123095@lisa.zopyra.com>
On Thu, Feb 22, 2007 at 08:17:17PM CET, Bill Lear wrote:
Show 5 quoted lines
> Git "indexing" of commits has a way to "go back":
> 
> % git diff HEAD~3
> 
> Can I say "all the way back", or "all the way back - 1" somehow?
What would that mean? :)

Do you mean to the "root" of the history? The trouble is, there can be many of such roots (coming up from merges of previously disjunct histories); even the git project itself has several. Which one to choose?

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
The meaning of Stonehenge in Traflamadorian, when viewed from above, is:
"Replacement part being rushed with all possible speed."
		-- Kurt Vonnegut, Sirens from Titan
Previous: Bill LearNext: Jakub Narebski
Message 2 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.