Skip to content

Commit b261ec4

Browse files
chriscoolgitster
authored andcommitted
Documentation: instaweb: add 'git-web--browse' information.
Now that 'git-instaweb' uses 'git-web--browse', update the documentation accordingly. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 897d39c commit b261ec4

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

Documentation/git-instaweb.txt

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,23 @@ OPTIONS
3838
The port number to bind the httpd to. (Default: 1234)
3939

4040
-b|--browser::
41-
42-
The web browser command-line to execute to view the gitweb page.
43-
If blank, the URL of the gitweb instance will be printed to
44-
stdout. (Default: 'firefox')
41+
The web browser that should be used to view the gitweb
42+
page. This will be passed to the 'git-web--browse' helper
43+
script along with the URL of the gitweb instance. If the
44+
script fails, the URL will be printed to stdout.
45+
+
46+
Note that the 'git-web--browse' script tries, as much as possible, to
47+
display the HTML page in a new tab on an already opened browser.
48+
+
49+
The following browsers are currently supported by 'git-web--browse':
50+
+
51+
* firefox (this is the default under X Window when not using KDE)
52+
* iceweasel
53+
* konqueror (this is the default under KDE)
54+
* w3m (this is the default outside X Window)
55+
* links
56+
* lynx
57+
* dillo
4558

4659
--start::
4760
Start the httpd instance and exit. This does not generate
@@ -74,6 +87,12 @@ You may specify configuration in your .git/config
7487
If the configuration variable 'instaweb.browser' is not set,
7588
'web.browser' will be used instead if it is defined.
7689

90+
You can explicitly provide a full path to your preferred browser by
91+
setting the configuration variable 'browser.<tool>.path'. For example,
92+
you can configure the absolute path to firefox by setting
93+
'browser.firefox.path'. Otherwise, 'git-web--browse' assumes the tool
94+
is available in PATH.
95+
7796
Author
7897
------
7998
Written by Eric Wong <normalperson@yhbt.net>

0 commit comments

Comments
 (0)