From: Junio C Hamano Date: Sun, 17 Feb 2008 01:57:47 +0000 (-0800) Subject: Merge branch 'cc/browser' X-Git-Tag: v1.5.5-rc0~207 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=990732609ce735c482e571ad95767edf1d693b41;p=git.git Merge branch 'cc/browser' * cc/browser: Documentation: add 'git-web--browse.txt' and simplify other docs. git-web--browse: fix misplaced quote in init_browser_path() web--browse: Add a few quotes in 'init_browser_path'. Documentation: instaweb: add 'git-web--browse' information. Adjust .gitignore for 5884f1(Rename 'git-help--browse.sh'...) git-web--browse: do not start the browser with nohup instaweb: use 'git-web--browse' to launch browser. Rename 'git-help--browse.sh' to 'git-web--browse.sh'. help--browse: add '--config' option to check a config option for a browser. help: make 'git-help--browse' usable outside 'git-help'. Conflicts: git-web--browse.sh --- 990732609ce735c482e571ad95767edf1d693b41 diff --cc git-web--browse.sh index 84e37ef27,fbf29cbe1..1023b9085 --- a/git-web--browse.sh +++ b/git-web--browse.sh @@@ -23,14 -23,9 +23,9 @@@ USAGE='[--browser=browser|--tool=browse NONGIT_OK=Yes . git-sh-setup - # Install data. - html_dir="@@HTMLDIR@@" - - test -f "$html_dir/git.html" || die "No documentation directory found." - valid_tool() { case "$1" in - firefox | iceweasel | konqueror | w3m | links | lynx | dillo) + firefox | iceweasel | konqueror | w3m | links | lynx | dillo | open) ;; # happy *) return 1 @@@ -144,10 -147,10 +151,10 @@@ case "$browser" i ;; esac ;; - w3m|links|lynx) + w3m|links|lynx|open) - eval "$browser_path" $pages + eval "$browser_path" "$@" ;; dillo) - nohup "$browser_path" $pages & + "$browser_path" "$@" & ;; esac