From: Johannes Schindelin Date: Fri, 2 Jan 2009 18:08:00 +0000 (+0100) Subject: bisect view: call gitk if Cygwin's SESSIONNAME variable is set X-Git-Tag: v1.6.1.1~6^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=22b3ddd508b022c76bf36bf390691a6f62c996d5;p=git.git bisect view: call gitk if Cygwin's SESSIONNAME variable is set 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 Signed-off-by: Junio C Hamano --- diff --git a/git-bisect.sh b/git-bisect.sh index 17a35f6ad..85db4ba40 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