t5300-pack-object: Set up the objects for --strict tests only once.
[git/mingw.git] / Documentation / git-web--browse.txt
blobddbae5b194790d7f76b53885e3d4ea642fda034a
1 git-web--browse(1)
2 ==================
4 NAME
5 ----
6 git-web--browse - git helper script to launch a web browser
8 SYNOPSIS
9 --------
10 'git-web--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 * konqueror (this is the default under KDE)
24 * w3m (this is the default outside graphical environments)
25 * links
26 * lynx
27 * dillo
28 * open (this is the default under Mac OS X GUI)
30 Custom commands may also be specified.
32 OPTIONS
33 -------
34 -b BROWSER|--browser=BROWSER::
35         Use the specified BROWSER. It must be in the list of supported
36         browsers.
38 -t BROWSER|--tool=BROWSER::
39         Same as above.
41 -c CONF.VAR|--config=CONF.VAR::
42         CONF.VAR is looked up in the git config files. If it's set,
43         then its value specify the browser that should be used.
45 CONFIGURATION VARIABLES
46 -----------------------
48 CONF.VAR (from -c option) and web.browser
49 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51 The web browser can be specified using a configuration variable passed
52 with the -c (or --config) command line option, or the 'web.browser'
53 configuration variable if the former is not used.
55 browser.<tool>.path
56 ~~~~~~~~~~~~~~~~~~~
58 You can explicitly provide a full path to your preferred browser by
59 setting the configuration variable 'browser.<tool>.path'. For example,
60 you can configure the absolute path to firefox by setting
61 'browser.firefox.path'. Otherwise, 'git-web--browse' assumes the tool
62 is available in PATH.
64 browser.<tool>.cmd
65 ~~~~~~~~~~~~~~~~~~
67 When the browser, specified by options or configuration variables, is
68 not among the supported ones, then the corresponding
69 'browser.<tool>.cmd' configuration variable will be looked up. If this
70 variable exists then "git web--browse" will treat the specified tool
71 as a custom command and will use a shell eval to run the command with
72 the URLs passed as arguments.
74 Note about git config --global
75 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
77 Note that these configuration variables should probably be set using
78 the '--global' flag, for example like this:
80 ------------------------------------------------
81 $ git config --global web.browser firefox
82 ------------------------------------------------
84 as they are probably more user specific than repository specific.
85 See linkgit:git-config[1] for more information about this.
87 Author
88 ------
89 Written by Christian Couder <chriscool@tuxfamily.org> and the git-list
90 <git@vger.kernel.org>, based on git-mergetool by Theodore Y. Ts'o.
92 Documentation
93 -------------
94 Documentation by Christian Couder <chriscool@tuxfamily.org> and the
95 git-list <git@vger.kernel.org>.
97 GIT
98 ---
99 Part of the linkgit:git[7] suite