git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Better handling of local changes in 'gitk'?
@ 2007-07-12 19:20 Linus Torvalds
  2007-07-12 20:43 ` Junio C Hamano
  2007-07-13  9:55 ` Paul Mackerras
  0 siblings, 2 replies; 9+ messages in thread
From: Linus Torvalds @ 2007-07-12 19:20 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Git Mailing List


I like how gitk shows the local changes as an unnamed commit at the top, 
but what I *don't* like is how it just ignored the difference between 
stuff that has been added to the index, and stuff that hasn't..

It would be very nice to have *two* such commits (either or both of which 
just disappear), where the top-most is the diff to the index, and the 
second is the diff from the index to HEAD.

That would not only be useful in general, it would be a wonderful way to 
visually introduce people to the notion of what the staging area is all 
about.

I think "gitk" was a great way early in git history to show how the git 
commit history works and that it made a lot of people understand a lot 
more how everything tied together (in a way that would have been much 
nastier to visualize with just the SHA1's in "git log"), and I think it 
could do the same thing for the staging area, which still seems to 
occasionally come up as an issue that confuses some people.

But my inability with tcl/tk precludes me from actually changing the logic 
that does

	git diff-index HEAD

into two different things that do the two operations

	git diff-index --cached HEAD
	git diff-files

respectively and ties them together as the two fake commits...

Paul?

			Linus

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-07-13 19:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-12 19:20 Better handling of local changes in 'gitk'? Linus Torvalds
2007-07-12 20:43 ` Junio C Hamano
2007-07-12 20:48   ` Junio C Hamano
2007-07-12 21:01     ` Linus Torvalds
2007-07-13  9:55 ` Paul Mackerras
2007-07-13 10:09   ` Paul Mackerras
2007-07-13 19:32     ` Linus Torvalds
2007-07-13 10:33   ` Johannes Sixt
2007-07-13 17:36   ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).