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

[PATCH] bisect view: call gitk if Cygwin's SESSIONNAME variable is set

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 2, 2009, 18:08 UTC
Message-ID
<alpine.DEB.1.00.0901021304280.27818@racer>

It seems that Cygwin sets the variable SESSIONNAME when an interactive desktop session is running, and does not set it when you log in via ssh.

So we can use this variable to determine whether to run gitk or git log in git bisect view.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 git-bisect.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-bisect.sh b/git-bisect.sh
index 17a35f6..85db4ba 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -508,7 +508,7 @@ bisect_visualize() {
 
 	if test $# = 0
 	then
-		case "${DISPLAY+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
+		case "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
 		'')	set git log ;;
 		set*)	set gitk ;;
 		esac
-- 
1.6.1.rc3.224.g95ac9
Message 1 of 1 in “bisect view: call gitk if Cygwin's SESSIONNAME variable is set”
  1. bisect view: call gitk if Cygwin's SESSIONNAME variable is setJohannes Schindelin, Jan 2, 2009

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.