Merge git://repo.or.cz/git-gui
authorJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2008 07:08:02 +0000 (00:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jul 2008 07:08:02 +0000 (00:08 -0700)
* git://repo.or.cz/git-gui:
git-gui: MERGE_RR lives in .git/ directly with newer Git versions
git-gui: Exit shortcut in MacOSX repaired

git-gui/git-gui.sh
git-gui/lib/merge.tcl
index d89f156fd54fe5e51e00793b908ce220e6aa91c8..940677cbd8558574fd9f9fb5812a0bbf46198588 100755 (executable)
@@ -1995,9 +1995,13 @@ if {[is_enabled multicommit]} {
        }
 }
 
-.mbar.repository add command -label [mc Quit] \
-       -command do_quit \
-       -accelerator $M1T-Q
+if {[is_MacOSX]} {
+       proc ::tk::mac::Quit {args} { do_quit }
+} else {
+       .mbar.repository add command -label [mc Quit] \
+               -command do_quit \
+               -accelerator $M1T-Q
+}
 
 # -- Edit Menu
 #
index cc26b0780882b6e8bde122c2a724d110f439d84f..5c01875b051305b5b40a17ac7a2245f69081f41b 100644 (file)
@@ -257,6 +257,7 @@ proc _reset_wait {fd} {
 
                catch {file delete [gitdir MERGE_HEAD]}
                catch {file delete [gitdir rr-cache MERGE_RR]}
+               catch {file delete [gitdir MERGE_RR]}
                catch {file delete [gitdir SQUASH_MSG]}
                catch {file delete [gitdir MERGE_MSG]}
                catch {file delete [gitdir GITGUI_MSG]}