From: Johannes Schindelin Date: Thu, 14 Feb 2008 12:29:58 +0000 (+0000) Subject: bisect view: check for MinGW32 and MacOSX in addition to X11 X-Git-Tag: v1.5.5-rc0~201 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=508e84a790bef46881459891748727c490d9a673;p=git.git bisect view: check for MinGW32 and MacOSX in addition to X11 When deciding if gitk or git-log should be used to visualize the current state, the environment variable DISPLAY was checked. Now, we check MSYSTEM (for MinGW32/MSys) and SECURITYSESSIONID (for MacOSX) in addition. Note that there is currently no way to ssh into MinGW32, and that SECURITYSESSIONID is not set automatically on MacOSX when ssh'ing into it. So this patch should be safe. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/git-bisect.sh b/git-bisect.sh index 6594a6291..74715edf0 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -331,9 +331,9 @@ bisect_visualize() { if test $# = 0 then - case "${DISPLAY+set}" in + case "${DISPLAY+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in '') set git log ;; - set) set gitk ;; + set*) set gitk ;; esac else case "$1" in