@matheusbsbs / matheus-bagliano / commits / c0d2c38d78
Fork 0

git-gui: enable the Tk console when tracing/debugging on Windows

Without any standard channels the trace option is pretty useless on Win32 unless you can show the Tk console which captures such output. This also permits introspection of the running application to assist in debugging. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>

Pat Thoyts committed Oct 5, 2010 at 23:51 UTC c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019
1 file changed +2
git-gui.sh
+2
@@ -83,6 +83,7 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} {
83 puts stderr "source $name"
84 uplevel 1 real__source $name
85 }
86 + if {[tk windowingsystem] eq "win32"} { console show }
87 }
88
89 ######################################################################
@@ -675,6 +676,7 @@ bind . <Visibility> {
676 if {[is_Windows]} {
677 wm iconbitmap . -default $oguilib/git-gui.ico
678 set ::tk::AlwaysShowSelection 1
679 + bind . <Control-F2> {console show}
680
681 # Spoof an X11 display for SSH
682 if {![info exists env(DISPLAY)]} {