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

Re: how to display file history?

From
Linus Torvalds <torvalds@osdl.org>
Date
May 15, 2006, 18:03 UTC
Message-ID
<Pine.LNX.4.64.0605151055080.3866@g5.osdl.org>
In-Reply-To
<e5bfff550605151022m7b9ddcd9y53cd745e16ff6b22@mail.gmail.com>
On Mon, 15 May 2006, Marco Costalba wrote:
> 
> Well, it works but the nice boundary circles are not shown, and qgit
> always adds  --boundary to command line args to feed git-rev-list, but
> in this case it seems the --boundary option didn't do his job.

Well, it did do it's job, but you expected different counting priorities than git-rev-list actually gives you.

For the "limit by number" case, the commit counting counts _both_ "primary" commits and "boundary" commits, and will limit the total output to the number specified.

qgit would seem to prefer to have the commit counting only affect the "primary" commits, and not the "boundary" ones at all. Which might be sensible, but it's not the semantics it has now.

gitk doesn't care, because it uses the boundary commits just as hints.

I _think_ gitk is correct here, and qgit is being too strict in its semantic understanding of what the boundary commits mean. But I think so mostly because it would actually be pretty hard to do otherwise (ie the git-rev-list commit counting is largely defined by it's _implementation_, not necessarily by what you want it to do ;)

		Linus
Previous: Marco CostalbaNext: Marco Costalba
Message 10 of 12 in “RE: how to display file history?”
  1. Brown, LenMay 15, 2006
  2. Junio C HamanoMay 15, 2006
  3. Eric W. BiedermanMay 15, 2006
  4. Linus TorvaldsMay 15, 2006
  5. Eric W. BiedermanMay 15, 2006
  6. Linus TorvaldsMay 15, 2006
  7. J. Bruce FieldsMay 15, 2006
  8. Jonas FonsecaMay 21, 2006
  9. Marco CostalbaMay 15, 2006
  10. Linus TorvaldsMay 15, 2006
  11. Marco CostalbaMay 15, 2006
  12. Linus TorvaldsMay 15, 2006

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.