git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GIT GUI PATCH] git-gui: open console when using --trace on windows

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Mar 23, 2012, 17:46 UTC
Message-ID
<242ca34168d568a493306f673e98b9019cee9c23.1332524700.git.hvoigt@hvoigt.net>

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>
---
 git-gui/git-gui.sh |    1 +
 1 file changed, 1 insertion(+)
diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
index ba4e5c1..7dddc7d 100755
--- a/git-gui/git-gui.sh
+++ b/git-gui/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
 }
-- 
1.7.10.rc1.28.g242ca
Message 1 of 1 in “git-gui: open console when using --trace on windows”
  1. git-gui: open console when using --trace on windowsHeiko Voigt, Mar 23, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.