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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Feb 14, 2008 at 12:29 UTC
508e84a790bef46881459891748727c490d9a673
1 file changed
+2
-2
git-bisect.sh
+2
-2
@@ -331,9 +331,9 @@ bisect_visualize() {
331
332
if test $# = 0
333
then
334
- case "${DISPLAY+set}" in
334
+ case "${DISPLAY+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
335
'') set git log ;;
336
- set) set gitk ;;
336
+ set*) set gitk ;;
337
esac
338
else
339
case "$1" in