summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7d7b1a)
raw | patch | inline | side by side (parent: e7d7b1a)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 23 Jul 2007 04:20:04 +0000 (00:20 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 23 Jul 2007 04:20:04 +0000 (00:20 -0400) |
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>
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 | patch | blob | history |
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 6b86f9808e98c04f99458b93bbae92732a06cc8f..1f5c2c3d44684459fa9b9692ab85f54ff858d83b 100644 (file)
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
$ui_comm edit modified false
if {$::GITGUI_BCK_exists} {
catch {file delete [gitdir GITGUI_BCK]}
- set $::GITGUI_BCK_exists 0
+ set ::GITGUI_BCK_exists 0
}
if {[is_enabled singlecommit]} do_quit