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

Re: Make "gitk" work better with dense revlists

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 27, 2005, 14:51 UTC
Message-ID
<Pine.LNX.4.64.0510270743490.4664@g5.osdl.org>
In-Reply-To
<17248.28857.90315.543669@cargo.ozlabs.ibm.com>
On Thu, 27 Oct 2005, Paul Mackerras wrote:
Show 6 quoted lines
>
> Linus Torvalds writes:
> >
> > So this makes gitk just show the diff of _that_ commit.
> 
> Committed and pushed out, but ...

Btw, the "show diff for commit" fails for the root case - you never see the initial commit.

That is definitely correct for big archives that started out of nothing (due to being imported), but it's sad/wrong for something like git itself, and it'a usually wrong when using --dense and a filename, since then the diff is often smaller (ie it might be a simple rename).

Show 5 quoted lines
> > Also, having now tested the previous "handle root commit in the 
> > TREECHANGED" logic a bit more, I think it's (a) stable and (b) the right 
> > thing to do. Sign me off on that one too.
> 
> What is that about?

That's just me improving how --dense works wrt root commits. Junio already merged it ("git-rev-list: fix --dense flag")

> I'm hoping to get back to gitk hacking RSN - I've been going flat out
> on the ppc32/ppc64 merge.  Thanks for doing the --dense thing; I was
> thinking about doing something like that inside gitk but doing it in
> git-rev-list is better.

A _lot_ better. You'd have been totally screwed performance-wise trying to do it in tcl/tk and executing git-diff-tree for everything.

Show 5 quoted lines
>		  It does mean that I now want to be able to
> get gitk to contract the view to just a given set of files or
> directories and then expand back to the whole tree view, which means
> running git-rev-list multiple times, which gitk can't do at the
> moment...

Yes. And please also give the option to contract the diffs to a set of files (I think that should be independently controlled, although perhaps with some way to set them both at the same time).

		Linus
Previous: Junio C HamanoNext: Sven Verdoolaege
Message 4 of 5 in “Make "gitk" work better with dense revlists”
  1. Linus TorvaldsOct 25, 2005
  2. Paul MackerrasOct 27, 2005
  3. Junio C HamanoOct 27, 2005
  4. Linus TorvaldsOct 27, 2005
  5. Sven VerdoolaegeOct 27, 2005

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.