git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bisect view: check for MinGW32 and MacOSX in addition to X11
@ 2008-02-14 12:29 Johannes Schindelin
  2008-02-15  9:40 ` Peter Karlsson
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2008-02-14 12:29 UTC (permalink / raw)
  To: git, gitster, sector3


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>
---

	Technically, we do not even support MinGW32 yet in git.git,
	but does it really hurt?  After all, you can call cygwin's git
	from MinGW32 as well...

 git-bisect.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/git-bisect.sh b/git-bisect.sh
index 6594a62..74715ed 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
-- 
1.5.4.1.1353.g0d5dd

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-13 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-14 12:29 [PATCH] bisect view: check for MinGW32 and MacOSX in addition to X11 Johannes Schindelin
2008-02-15  9:40 ` Peter Karlsson
2008-02-15 10:51   ` Johannes Schindelin
2008-02-15 12:46     ` Peter Karlsson
2008-02-15 12:50       ` Johannes Schindelin
2008-03-10 18:20       ` Johannes Schindelin
2008-03-13 19:19         ` Peter Karlsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).