diff options
author | Heiko Voigt <hvoigt@hvoigt.net> | 2012-03-23 18:46:27 +0100 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2012-03-25 13:24:14 +0100 |
commit | c42939d24e5f48f7bce44771dbe22a879664faa1 (patch) | |
tree | bc2a16db1cad56c05f1ecd1b7c4b2d1031325b0d | |
parent | git-gui: fix a typo in po/ files (diff) | |
download | tgif-c42939d24e5f48f7bce44771dbe22a879664faa1.tar.xz |
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>
-rwxr-xr-x | git-gui.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh index ba4e5c1330..7dddc7dd24 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -154,6 +154,7 @@ set _trace [lsearch -exact $argv --trace] if {$_trace >= 0} { set argv [lreplace $argv $_trace $_trace] set _trace 1 + if {[tk windowingsystem] eq "win32"} { console show } } else { set _trace 0 } |