summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d555858)
raw | patch | inline | side by side (parent: d555858)
author | Jay Soffian <jaysoffian@gmail.com> | |
Thu, 14 Feb 2008 08:36:14 +0000 (03:36 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Feb 2008 08:45:57 +0000 (00:45 -0800) |
/usr/bin/open <document> is used under OS X to open a document as if the
user had double-clicked on the file's icon (i.e. HTML files are opened
w/the user's default browser).
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Acked-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
user had double-clicked on the file's icon (i.e. HTML files are opened
w/the user's default browser).
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Acked-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-help--browse.sh | patch | blob | history |
diff --git a/git-help--browse.sh b/git-help--browse.sh
index 10b0a36a3d2728d092f9943ace860205d340f220..84e37ef279b11a1461854a7cf37dc962d43e7050 100755 (executable)
--- a/git-help--browse.sh
+++ b/git-help--browse.sh
valid_tool() {
case "$1" in
- firefox | iceweasel | konqueror | w3m | links | lynx | dillo)
+ firefox | iceweasel | konqueror | w3m | links | lynx | dillo | open)
;; # happy
*)
return 1
else
browser_candidates="w3m links lynx"
fi
+ # SECURITYSESSIONID indicates an OS X GUI login session
+ if test -n "$SECURITYSESSIONID"; then
+ browser_candidates="open $browser_candidates"
+ fi
for i in $browser_candidates; do
init_browser_path $i
;;
esac
;;
- w3m|links|lynx)
+ w3m|links|lynx|open)
eval "$browser_path" $pages
;;
dillo)