criss cross rename failure workaround
[git/dscho.git] / Documentation / git-web--browse.txt
blobc0416e5e1a5243ef228173a3a45bb47bf1f3a840
1 git-web{litdd}browse(1)
2 =======================
4 NAME
5 ----
6 git-web--browse - git helper script to launch a web browser
8 SYNOPSIS
9 --------
10 'git web{litdd}browse' [OPTIONS] URL/FILE ...
12 DESCRIPTION
13 -----------
15 This script tries, as much as possible, to display the URLs and FILEs
16 that are passed as arguments, as HTML pages in new tabs on an already
17 opened web browser.
19 The following browsers (or commands) are currently supported:
21 * firefox (this is the default under X Window when not using KDE)
22 * iceweasel
23 * seamonkey
24 * iceape
25 * chromium (also supported as chromium-browser)
26 * google-chrome (also supported as chrome)
27 * konqueror (this is the default under KDE, see 'Note about konqueror' below)
28 * opera
29 * w3m (this is the default outside graphical environments)
30 * elinks
31 * links
32 * lynx
33 * dillo
34 * open (this is the default under Mac OS X GUI)
35 * start (this is the default under MinGW)
37 Custom commands may also be specified.
39 OPTIONS
40 -------
41 -b <browser>::
42 --browser=<browser>::
43         Use the specified browser. It must be in the list of supported
44         browsers.
46 -t <browser>::
47 --tool=<browser>::
48         Same as above.
50 -c <conf.var>::
51 --config=<conf.var>::
52         CONF.VAR is looked up in the git config files. If it's set,
53         then its value specifies the browser that should be used.
55 CONFIGURATION VARIABLES
56 -----------------------
58 CONF.VAR (from -c option) and web.browser
59 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61 The web browser can be specified using a configuration variable passed
62 with the -c (or --config) command line option, or the 'web.browser'
63 configuration variable if the former is not used.
65 browser.<tool>.path
66 ~~~~~~~~~~~~~~~~~~~
68 You can explicitly provide a full path to your preferred browser by
69 setting the configuration variable 'browser.<tool>.path'. For example,
70 you can configure the absolute path to firefox by setting
71 'browser.firefox.path'. Otherwise, 'git web--browse' assumes the tool
72 is available in PATH.
74 browser.<tool>.cmd
75 ~~~~~~~~~~~~~~~~~~
77 When the browser, specified by options or configuration variables, is
78 not among the supported ones, then the corresponding
79 'browser.<tool>.cmd' configuration variable will be looked up. If this
80 variable exists then 'git web{litdd}browse' will treat the specified tool
81 as a custom command and will use a shell eval to run the command with
82 the URLs passed as arguments.
84 Note about konqueror
85 --------------------
87 When 'konqueror' is specified by a command line option or a
88 configuration variable, we launch 'kfmclient' to try to open the HTML
89 man page on an already opened konqueror in a new tab if possible.
91 For consistency, we also try such a trick if 'browser.konqueror.path' is
92 set to something like 'A_PATH_TO/konqueror'. That means we will try to
93 launch 'A_PATH_TO/kfmclient' instead.
95 If you really want to use 'konqueror', then you can use something like
96 the following:
98 ------------------------------------------------
99         [web]
100                 browser = konq
102         [browser "konq"]
103                 cmd = A_PATH_TO/konqueror
104 ------------------------------------------------
106 Note about git-config --global
107 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
109 Note that these configuration variables should probably be set using
110 the '--global' flag, for example like this:
112 ------------------------------------------------
113 $ git config --global web.browser firefox
114 ------------------------------------------------
116 as they are probably more user specific than repository specific.
117 See linkgit:git-config[1] for more information about this.
119 Author
120 ------
121 Written by Christian Couder <chriscool@tuxfamily.org> and the git-list
122 <git@vger.kernel.org>, based on 'git mergetool' by Theodore Y. Ts'o.
124 Documentation
125 -------------
126 Documentation by Christian Couder <chriscool@tuxfamily.org> and the
127 git-list <git@vger.kernel.org>.
131 Part of the linkgit:git[1] suite