diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2009-01-02 19:08:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-03 14:25:27 -0800 |
commit | 22b3ddd508b022c76bf36bf390691a6f62c996d5 (patch) | |
tree | 7c643d35745fae07bf554604311ade92b44c3bf1 | |
parent | 8104ebfe8276657ee803cca7eb8665a78cf3ef83 (diff) | |
download | git-22b3ddd508b022c76bf36bf390691a6f62c996d5.tar.gz |
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>
-rwxr-xr-x | git-bisect.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-bisect.sh b/git-bisect.sh index 17a35f6adc..85db4ba400 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 |