summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2010-10-05 22:51:34 (GMT)
committerPat Thoyts <patthoyts@users.sourceforge.net>2010-10-05 22:51:34 (GMT)
commitc0d2c38d78fc3b55b7f0a2470ca89bed43eb4019 (patch)
tree9690ca25f4446a977e199f188738c79ae6583336 /git-gui.sh
parent7ae1e727622883c029550e0b99488c6d058a94bc (diff)
downloadgit-c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019.zip
git-c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019.tar.gz
git-c0d2c38d78fc3b55b7f0a2470ca89bed43eb4019.tar.bz2
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 <patthoyts@users.sourceforge.net>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index ed0904d..ea262a2 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 . <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)]} {