git-gui: Paper bag fix quitting crash after commit
commit9c5a3c7797449e1b3e6455327394677c21f0f908
authorShawn O. Pearce <spearce@spearce.org>
Mon, 23 Jul 2007 04:20:04 +0000 (23 00:20 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 23 Jul 2007 04:20:04 +0000 (23 00:20 -0400)
treed9eaea1e57315f9f8e6882c0177e1bcdcc15babe
parente7d7b1a34ea3d3e4ee44471acbc97eda9bfffb55
git-gui: Paper bag fix quitting crash after commit

My earlier introduction of the GITGUI_BCK file (which saves the user's
commit message buffer while they are typing it) broke the Quit function.
If the user makes a commit we delete the GITGUI_BCK file; if they then
immediately quit the application we fail to rename the GITGUI_BCK file
to GITGUI_MSG.  This is because the file does not exist, but our flag
still says it does.  The root cause is we did not unset the flag during
commit.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/commit.tcl