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

Re: Any way to get complete diff up to a tag?

From
GTGreg Troxel <gdt@ir.bbn.com>
Date
May 6, 2010, 18:38 UTC
Message-ID
<rmiwrvgana0.fsf@fnord.ir.bbn.com>
In-Reply-To
<alpine.LFD.2.00.1005060955000.901@i5.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 8 quoted lines
> Well, you don't strictly speaking have to "remember" it, you can always 
> just re-generate it. The most straightforward way to do that is probably
>
> 	git hash-object -t tree --stdin < /dev/null
>
> although I admit that maybe we could have some syntax for "git diff" that 
> would do the "diff against empty tree" automatically. It does seem to be 
> conceptually a reasonable thing to do.
How about 
  git diff empty..

as if empty is a tag for the empty revision? It works for 'git checkout' already.

Previous: Linus TorvaldsNext: Peter Kjellerstedt
Message 10 of 13 in “Any way to get complete diff up to a tag?”
  1. Peter KjellerstedtMay 6, 2010
  2. Bert WesargMay 6, 2010
  3. Björn SteinbrinkMay 6, 2010
  4. Peter KjellerstedtMay 6, 2010
  5. Santi BéjarMay 6, 2010
  6. Johannes SixtMay 6, 2010
  7. Peter KjellerstedtMay 6, 2010
  8. Björn SteinbrinkMay 6, 2010
  9. Linus TorvaldsMay 6, 2010
  10. Greg TroxelMay 6, 2010
  11. Peter KjellerstedtMay 7, 2010
  12. KnittlMay 6, 2010
  13. Peter KjellerstedtMay 7, 2010

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.