Skip to content

Commit 22b3ddd

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8104ebf commit 22b3ddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-bisect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ bisect_visualize() {
508508

509509
if test $# = 0
510510
then
511-
case "${DISPLAY+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
511+
case "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
512512
'') set git log ;;
513513
set*) set gitk ;;
514514
esac

0 commit comments

Comments
 (0)