Skip to content

Commit c42939d

Browse files
hvoigtpatthoyts
authored andcommitted
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 <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent ef42057 commit c42939d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-gui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ set _trace [lsearch -exact $argv --trace]
154154
if {$_trace >= 0} {
155155
set argv [lreplace $argv $_trace $_trace]
156156
set _trace 1
157+
if {[tk windowingsystem] eq "win32"} { console show }
157158
} else {
158159
set _trace 0
159160
}

0 commit comments

Comments
 (0)