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

Re: How do I...

From
Linus Torvalds <torvalds@osdl.org>
Date
May 6, 2005, 22:57 UTC
Message-ID
<Pine.LNX.4.58.0505061552140.2233@ppc970.osdl.org>
In-Reply-To
<1115406628.16187.353.camel@hades.cambridge.redhat.com>
On Fri, 6 May 2005, David Woodhouse wrote:
> 
> When I said 'show' I meant merely provide sufficient information. 

To do that, you'd just have to always show the commit/parent pairs, regardless of whether it had a difference or not. That's actually what the first version did, but it was so ugly that I ended up changing it to only showing pairs that had differences.

It would be easy to add a "--all" flag or something, that shows all commit/parent information, and then you would use that, but the thing is, you're likely better off just using git-rev-tree to build the graph in the first place.

So it's doable, and it has nothing to do with git-diff-tree. So normally you'd do something like "show me all differences between v2.6.12-rc2 and now, and then you _do_ end up using git-rev-tree first to make a list of commits, and then you feed that list of commits into git-diff-tree - and notice that when you did the rev-tree in the first place, you actually did build up the history tree to get there, so if you want to visualize it, you should now use _that_ tree that you already built.

diff-tree never has any commit history tree information available to it. It just doesn't know, care, or bother.

		Linus
Previous: David WoodhouseNext: David Woodhouse
Message 17 of 24 in “How do I...”
  1. Frank SorensonMay 6, 2005
  2. Thomas GlanzmannMay 6, 2005
  3. Thomas GlanzmannMay 6, 2005
  4. Dave KleikampMay 6, 2005
  5. Frank SorensonMay 6, 2005
  6. Dave KleikampMay 6, 2005
  7. Frank SorensonMay 6, 2005
  8. Linus TorvaldsMay 6, 2005
  9. Junio C HamanoMay 6, 2005
  10. Frank SorensonMay 6, 2005
  11. Daniel BarkalowMay 6, 2005
  12. Frank SorensonMay 6, 2005
  13. Linus TorvaldsMay 6, 2005
  14. David WoodhouseMay 6, 2005
  15. Linus TorvaldsMay 6, 2005
  16. David WoodhouseMay 6, 2005
  17. Linus TorvaldsMay 6, 2005
  18. David WoodhouseMay 6, 2005
  19. Linus TorvaldsMay 6, 2005
  20. David WoodhouseMay 7, 2005
  21. Thomas KolejkaMay 6, 2005
  22. David WoodhouseMay 6, 2005
  23. Benjamin HerrenschmidtMay 7, 2005
  24. Linus TorvaldsMay 6, 2005

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.