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

Re: [RFC PATCH] Make gitk use --early-output

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Nov 4, 2007, 17:53 UTC
Message-ID
<alpine.LFD.0.999.0711040947110.15101@woody.linux-foundation.org>
In-Reply-To
<e5bfff550711040237s250bcec0iddf1ebdc616e0bbf@mail.gmail.com>
On Sun, 4 Nov 2007, Marco Costalba wrote:
> 
> But --early-output does not imply --topo-order, I guess...

Well, it does right now, because I imagined that the primary users would always want the topological sort.

However, I have to admit that --early-output *could* be used even without the topological sort, because it also works for other cases that require up-front limiter logic - things like ranges of commits also have to be fully evaluated before they are totally certain, so I could imagine seeing some visualizer some day that doesn't need the topo-order sort, but does want to get a "preliminary" list.

That said, it does seem unlikely. Anybody who asks for --early-output is pretty much invariably going to be an interactive visulizer: the whole notion doesn't make much sense otherwise. So I think I made the right choice in making --early-output imply topo-order, and if somebody ever wants to not get the output topologically sorted (unlikely), we could add a "--no-topo-order" flag.

Side note: if you want the "--date-order", you do need to specify *both* --early-output and --date-order, and it will do the right thing (ie both the preliminary output and the final one will be topologically sorted, but within that topo-sort it will be in date order rather than clumped by the "shape" of the history).

			Linus
Previous: Marco CostalbaNext: David Kastrup
Message 7 of 8 in “Make gitk use --early-output”
  1. Make gitk use --early-outputPaul Mackerras, Nov 3, 2007
  2. Michael J. CohenNov 4, 2007
  3. Linus TorvaldsNov 4, 2007
  4. Marco CostalbaNov 4, 2007
  5. Paul MackerrasNov 4, 2007
  6. Marco CostalbaNov 4, 2007
  7. Linus TorvaldsNov 4, 2007
  8. David KastrupNov 4, 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.