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

Re: Better handling of local changes in 'gitk'?

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Jul 12, 2007, 21:01 UTC
Message-ID
<alpine.LFD.0.999.0707121356430.20061@woody.linux-foundation.org>
In-Reply-To
<7vejjdtkl0.fsf@assigned-by-dhcp.cox.net>
On Thu, 12 Jul 2007, Junio C Hamano wrote:
>
> I just meant that I agree with you that --cc between HEAD, index and the 
> working tree is a wonderful way to view the current state.

Heh. I wasn't thinking of --cc, and if seen as a combination diff, I think --combined would be better (we very much want to see *all* changes, not just the conflicting ones, no?).

I was literally meaning two separate diffs, as two separate commits. But yes, I do agree that it might be very interesting to make "git diff-index" know about --combined/--cc in addition to --cached.

Show 5 quoted lines
> It might make sense to teach "git diff" itself to show this
> 3-way diff with a new option ("git diff --h-i-w").  The
> necessary machinery is already there to handle "git diff maint
> master next pu" (four trees!), and "git diff maint:Makefile
> master:Makefile next:Makefile" (three blobs).

Actually, I think that if you teach "git diff-index" about --combined and --cc, then you'll automatically get it when you just do "git diff HEAD". No?

		Linus
Previous: Junio C HamanoNext: Paul Mackerras
Message 4 of 9 in “Better handling of local changes in 'gitk'?”
  1. Linus TorvaldsJul 12, 2007
  2. Junio C HamanoJul 12, 2007
  3. Junio C HamanoJul 12, 2007
  4. Linus TorvaldsJul 12, 2007
  5. Paul MackerrasJul 13, 2007
  6. Paul MackerrasJul 13, 2007
  7. Linus TorvaldsJul 13, 2007
  8. Johannes SixtJul 13, 2007
  9. Linus TorvaldsJul 13, 2007

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.