Skip to content

Commit

Permalink
git-gui: enable the Tk console when tracing/debugging on Windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pat Thoyts committed Oct 5, 2010
1 parent 7ae1e72 commit c0d2c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}

######################################################################
Expand Down Expand Up @@ -675,6 +676,7 @@ bind . <Visibility> {
if {[is_Windows]} {
wm iconbitmap . -default $oguilib/git-gui.ico
set ::tk::AlwaysShowSelection 1
bind . <Control-F2> {console show}
# Spoof an X11 display for SSH
if {![info exists env(DISPLAY)]} {
Expand Down

0 comments on commit c0d2c38

Please sign in to comment.