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

Re: Can I have this, pretty please?

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Aug 12, 2007, 19:59 UTC
Message-ID
<alpine.LFD.0.999.0708121255230.30176@woody.linux-foundation.org>
In-Reply-To
<85wsw0mt77.fsf@lola.goethe.zz>
On Sun, 12 Aug 2007, David Kastrup wrote:
Show 7 quoted lines
> >
> > So, use "git log --pretty=oneline" instead, which doesn't have the
> > expense.
> 
> Yes, like managing a manual with grep is all one needs.  git log
> --pretty=oneline provides just the commit headers, but offers no way
> to jump into the commits themselves and back easily.
You misunderstand.

I was suggesting you do a *tool* that bases its listing on --pretty=oneline, and then goes from there.

If you don't show the graph anyway, all the complex and expensive things that "git-rev-list --topo-order" does is pretty much totally useless. You're going to show the commits as a list anyway, and then when you *select* one commit for closer inspection, you can then try to do a better job at that point of doing the reachability (ie parenthood is trivial, and the branch reachability is cheap if it's close to the tip of the tree, which it would almost always be).

The real problem with the topological sort is that it requires you to have the full history. That not only makes everything pretty big, it also means that the startup cost is bad, since you can't do things incrementally.

But if you have a client that is incremental anyway, almost all of that goes away.

			Linus
Previous: David KastrupNext: David Kastrup
Message 20 of 29 in “Can I have this, pretty please?”
  1. David KastrupAug 12, 2007
  2. Steven GrimmAug 12, 2007
  3. David KastrupAug 12, 2007
  4. Linus TorvaldsAug 12, 2007
  5. Linus TorvaldsAug 12, 2007
  6. Jon SmirlAug 12, 2007
  7. Linus TorvaldsAug 12, 2007
  8. David KastrupAug 12, 2007
  9. David KastrupAug 12, 2007
  10. Uwe Kleine-KönigAug 12, 2007
  11. David KastrupAug 12, 2007
  12. Linus TorvaldsAug 12, 2007
  13. Linus TorvaldsAug 12, 2007
  14. David KastrupAug 12, 2007
  15. Paul MackerrasAug 13, 2007
  16. David KastrupAug 13, 2007
  17. David KastrupAug 12, 2007
  18. Linus TorvaldsAug 12, 2007
  19. David KastrupAug 12, 2007
  20. Linus TorvaldsAug 12, 2007
  21. David KastrupAug 12, 2007
  22. Govind SalinasAug 12, 2007
  23. David KastrupAug 12, 2007
  24. Martin LanghoffAug 12, 2007
  25. David KastrupAug 12, 2007
  26. Jeff KingAug 12, 2007
  27. Jeff KingAug 12, 2007
  28. David KastrupAug 12, 2007
  29. Jeff KingAug 12, 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.