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)
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>
No differences found