git-gui: Don't allow staging files with conflicts.
commit617ceee653bd7377f662bfc6d3085f321efab7e4
authorAlexander Gavrilov <angavrilov@gmail.com>
Sat, 30 Aug 2008 20:54:19 +0000 (31 00:54 +0400)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 5 Sep 2008 04:28:55 +0000 (4 21:28 -0700)
treea24b3050c26321f93bacc8493b8e1c3757cf53d4
parent7e30682ce042fdea1ff2c76226b17d9affe2f9bf
git-gui: Don't allow staging files with conflicts.

Prevent staging files with conflict markers by clicking
on the icon in the 'Unstaged Changes' list. Instead, pretend
that the user clicked the name, and show the diff.

Originally it made some sense to allow staging conflicting
files, because git-gui did not provide any tools to resolve
them from within the GUI. But now that we have added mergetool
capabilities, it is more likely to cause accidental and
non-undoable errors.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh