@matheusbsbs / matheus-bagliano / commits / 22b3ddd508
Fork 0

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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jan 2, 2009 at 19:08 UTC 22b3ddd508b022c76bf36bf390691a6f62c996d5
1 file changed +1 -1
git-bisect.sh
+1 -1
@@ -508,7 +508,7 @@ bisect_visualize() {
508
509 if test $# = 0
510 then
511 - case "${DISPLAY+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
511 + case "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
512 '') set git log ;;
513 set*) set gitk ;;
514 esac