From: Shawn O. Pearce Date: Tue, 7 Nov 2006 01:03:36 +0000 (-0500) Subject: git-gui: Verify we should actually perform a commit when asked to do so. X-Git-Tag: gitgui-0.6.0~299 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6e27d826c807153a4773f197e5056d66a6a809c0?hp=6e27d826c807153a4773f197e5056d66a6a809c0 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 ---