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

Re: gitweb.cgi history not shown

From
Linus Torvalds <torvalds@osdl.org>
Date
Jun 11, 2006, 16:54 UTC
Message-ID
<Pine.LNX.4.64.0606110948090.5498@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0606110933040.5498@g5.osdl.org>
I just like talking to myself.
On Sun, 11 Jun 2006, Linus Torvalds wrote:
> 
> 	git-rev-list --all | git-diff-tree -p -- <filename>

That obviously wants a "--stdin" argument to git-diff-tree, and I might as well point out that it has a few other differences to doing this with the "--no-simplify-history" flag:

 - git-diff-tree obviously doesn't show merges normally, and when it does, 
   it would show only merges that change the file. In contrast, the "git 
   log" approach would show all merges that are part of the resulting 
   history (which, since you don't simplify merges, is _all_ of them).
 - the extra flag to "git log" approach allows "--parents" to work, ie the 
   stretches of commits in between merges would have their parents 
   rewritten, so that the history would be a unified whole, and you can 
   use qgit/gitk to show the result. The above pipeline obviously cannot 
   do that, since doing the filename limiter in git-diff-tree means that 
   it doesn't ever even _see_ the "history" part, it's just doing it one 
   commit at a time.

That concludes my monologue on the matter, I hope. If somebody wants to condense the issue of "show all history" vs "show how we got to this state" and add it to the Wiki FAQ thing, that would probably be good.

		Linus
Previous: Linus TorvaldsNext: Jakub Narebski
Message 6 of 8 in “gitweb.cgi history not shown”
  1. Marco CostalbaJun 11, 2006
  2. Linus TorvaldsJun 11, 2006
  3. Marco CostalbaJun 11, 2006
  4. Linus TorvaldsJun 11, 2006
  5. Linus TorvaldsJun 11, 2006
  6. Linus TorvaldsJun 11, 2006
  7. Jakub NarebskiJun 11, 2006
  8. Linus TorvaldsJun 11, 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.