git-gui: open console when using --trace on windows
When starting a gui program on windows stdout, stderr and stdin are not connected to the cmd console. As a workaround tk has a console window. Lets open this when the --trace commandline option has been given. This is helpful for debugging. Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Heiko Voigt committed
Mar 23, 2012 at 18:46 UTC
c42939d24e5f48f7bce44771dbe22a879664faa1
1 file changed
+1
git-gui.sh
+1
@@ -154,6 +154,7 @@ set _trace [lsearch -exact $argv --trace]
154
if {$_trace >= 0} {
155
set argv [lreplace $argv $_trace $_trace]
156
set _trace 1
157
+ if {[tk windowingsystem] eq "win32"} { console show }
158
} else {
159
set _trace 0
160
}