]> git.ipfire.org Git - thirdparty/git.git/commit - git-gui.sh
git-gui: Remove combined diff showing behavior.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 16:54:16 +0000 (11:54 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 22 Jan 2007 03:47:53 +0000 (22:47 -0500)
commit82cb8706bb9f4f43c72e0228ad33d91c29448f3f
tree7c2f798402d85f56452ba422cf362baa72ed0b03
parent20a53c029efe15cacc26c0e6a0c980ff4bda6635
git-gui: Remove combined diff showing behavior.

The combined diff format can be very confusing, especially to new users
who may not even be familiar with a standard two way diff format.  So
for files which are already staged for commit and which are modifed in
the working directory we should show two different diffs, depending on
which side the user clicked on.

If the user clicks on the "Changes To Be Committed" side then we should
show them the PARENT<->index difference.  This is the set of changes they
will actually commit.

If the user clicks on the "Changed But Not Updated" side we should show
them the index<->working directory difference.  This is the set of changes
which will not be committed, as they have not been staged into the index.
This is especially useful when merging, as the "Changed But Not Updated"
files are the ones that need merge conflict resolution, and the diff here
is the conflict hunks and/or any evil merge created by the user.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh