From: Pat Thoyts Date: Tue, 5 Oct 2010 22:51:34 +0000 (+0100) Subject: git-gui: enable the Tk console when tracing/debugging on Windows X-Git-Tag: v1.7.4-rc0~155^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019;p=git.git 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 --- diff --git a/git-gui.sh b/git-gui.sh index ed0904d99..ea262a2ba 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -83,6 +83,7 @@ if {![catch {set _verbose $env(GITGUI_VERBOSE)}]} { puts stderr "source $name" uplevel 1 real__source $name } + if {[tk windowingsystem] eq "win32"} { console show } } ###################################################################### @@ -675,6 +676,7 @@ bind . { if {[is_Windows]} { wm iconbitmap . -default $oguilib/git-gui.ico set ::tk::AlwaysShowSelection 1 + bind . {console show} # Spoof an X11 display for SSH if {![info exists env(DISPLAY)]} {