path: root/
AgeCommit message (Collapse)Author
2009-09-14web--browse: fix Mac OS X GUI detection for 10.6Heiko Voigt
Since OS X 10.6 the variable $SECURITYSESSIONID does not exist anymore, so lets look for the $TERM_PROGRAM variable as backup. Signed-off-by: Heiko Voigt <> Signed-off-by: Junio C Hamano <>
2009-06-01git: browsing paths with spaces when using the start commandPat Thoyts
msysGit issue 258 tracks a problem opening a browser onto file paths that contain spaces or parentheses when calling the web--browse script. This patch modifies how the start command is called to solve this. Signed-off-by: Pat Thoyts <> Signed-off-by: Steffen Prohaska <> Signed-off-by: Junio C Hamano <>
2009-02-09git-web--browse: Fix check for /bin/startTodd Zullinger
The previous check in git-web--browse for /bin/start used test -n /bin/start, which was always true. This lead to "start" being tried first in the browser list. On systems with upstart installed, "start" exists and might be in the PATH, but it makes a poor choice for a web browser. Instead, test that /bin/start exists and is executable. Signed-off-by: Todd Zullinger <> Signed-off-by: Junio C Hamano <>
2008-09-24git-web--browse: Support for using /bin/start on MinGWPetr Baudis
In the future, I think we should also default to xdg-open on Linux instead of having a KDE-specific hack. This patch has been sponsored by Novartis. Signed-off-by: Petr Baudis <> Signed-off-by: Shawn O. Pearce <>
2008-03-14web--browse: use custom commands defined at config timeChristian Couder
Currently "git web--browse" is restricted to a set of commands defined in the script. You can subvert the "browser.<tool>.path" to force "git web--browse" to use a different command, but if you have a command whose invocation syntax does not match one of the current tools then you would have to write a wrapper script for it. This patch adds a git config variable "browser.<tool>.cmd" which allows a more flexible browser choice. If you run "git web--browse" with -t/--tool, -b/--browser or the "web.browser" config variable set to an unrecognized tool then "git web--browse" will query the "browser.<tool>.cmd" config variable. If this variable exists, then "git web--browse" will treat the specified tool as a custom command and will use a shell eval to run the command with the URLs added as extra parameters. Signed-off-by: Christian Couder <> Signed-off-by: Junio C Hamano <>
2008-02-17Merge branch 'cc/browser'Junio C Hamano
* 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-web--browse: do not start the browser with nohup instaweb: use 'git-web--browse' to launch browser. Rename '' to ''. help--browse: add '--config' option to check a config option for a browser. help: make 'git-help--browse' usable outside 'git-help'. Conflicts:
2008-02-11git-web--browse: fix misplaced quote in init_browser_path()
git "config browser.$1.path" should be git config "browser.$1.path" Signed-off-by: Jay Soffian <> Signed-off-by: Junio C Hamano <>
2008-02-10web--browse: Add a few quotes in 'init_browser_path'.Christian Couder
These changes were made to the 'init_browser_path' function in '', but was not in ''. [jc: the quoting was screwy and did not quote $1 correctly, so I fixed it up.] Signed-off-by: Christian Couder <> Signed-off-by: Junio C Hamano <>
2008-02-10git-web--browse: do not start the browser with nohupDmitry Potapov
There is no good reason to run GUI browsers using "nohup". It does not solve any real problem but creates annoying "nohup.out" files in every directory where git help -w is run. Signed-off-by: Dmitry Potapov <> Signed-off-by: Junio C Hamano <>
2008-02-05Rename '' to ''.Christian Couder
Signed-off-by: Christian Couder <> Signed-off-by: Junio C Hamano <>