Code

bisect view: check for MinGW32 and MacOSX in addition to X11
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Thu, 14 Feb 2008 12:29:58 +0000 (12:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Feb 2008 03:27:40 +0000 (19:27 -0800)
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>
git-bisect.sh

index 6594a62919adcf2d1c524cc24435b6fe444f9d52..74715edf0b197376250e5d111407a36a6c237678 100755 (executable)
@@ -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