Code

git-gui: Verify we should actually perform a commit when asked to do so.
authorShawn O. Pearce <spearce@spearce.org>
Tue, 7 Nov 2006 01:03:36 +0000 (20:03 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 7 Nov 2006 08:05:16 +0000 (03:05 -0500)
commit6e27d826c807153a4773f197e5056d66a6a809c0
treedad25386de972a3542065422d16f53e5dbc5577d
parente210e67451f22f97c1476d6b78b6fa7fdd5817f9
git-gui: Verify we should actually perform a commit when asked to do so.

A user shouldn't perform a commit if any of the following are true:

 * The repository state has changed since the last rescan.
 * There are no files updated in the index to commit.
 * There are unmerged stages still in the index.
 * The commit message has not been provided.
 * The pre-commit hook is executable and declined.

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