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

Re: [PATCH] Enable tree (directory) history display

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Jul 1, 2006, 22:45 UTC
Message-ID
<20060701224510.38530.qmail@web31806.mail.mud.yahoo.com>
In-Reply-To
<Pine.LNX.4.64.0606302029310.12404@g5.osdl.org>
--- Linus Torvalds <torvalds@osdl.org> wrote:
Show 6 quoted lines
> That count of 145 is the number of commits that actually _change_ Makefile 
> some way - and some of them really are merges, because they have a content 
> merge, and the merge result is thus different from any of the children. So 
> that's a real number. So is 136, in some sense - it just says that we 
> don't care about commits, even if those commits _do_ end up changing the 
> file.

Indeed, I got the same conclusion using different branches. (Sorry, I thought your email was from Junio in my last email, it was your analysis after all.)

Show 7 quoted lines
> But the important part to realize is that the "971" number is always 
> wrong. It's never a really valid number. It contains a lot of extra 
> merges, but it does _not_ contain enough of them to connect all the dots, 
> and it's thus never correct. Either you should drop merges that don't 
> change things (in which case you cannot have full connectivity, and 
> "--parents" doesn't make sense), or you should keep them all (or at least 
> enough to get full connectivity).
Yes, that makes sense.

Ok, I get similar numbers as you do. After the patch, compared to the simple case of git-rev-list HEAD -- <path spec>, --parents gives me only one more commit which is the very first hand made kernel commit ;-) ; --parents --full-history gives me way too many unrelated commits about 10x as many; --full-history gives me a _complete_ list.

The simple case fails to report a few commits which are due to merges, which do indeed change files in the path spec. (--full-history successfully reported those though).

So your patch plus "--full-history" is what I think we want.
    Luben
Previous: Linus TorvaldsNext: Luben Tuikov
Message 8 of 9 in “Enable tree (directory) history display”
  1. Enable tree (directory) history displayLuben Tuikov, Jul 1, 2006
  2. Junio C HamanoJul 1, 2006
  3. Luben TuikovJul 1, 2006
  4. Junio C HamanoJul 1, 2006
  5. Luben TuikovJul 1, 2006
  6. Linus TorvaldsJul 1, 2006
  7. Linus TorvaldsJul 1, 2006
  8. Luben TuikovJul 1, 2006
  9. Luben TuikovJul 1, 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.