* [PATCH 2/2] Documention: web--browse: add info about "browser.<tool>.cmd" config var
@ 2008-03-14 4:56 Christian Couder
2008-03-15 13:00 ` Xavier Maillard
0 siblings, 1 reply; 2+ messages in thread
From: Christian Couder @ 2008-03-14 4:56 UTC (permalink / raw)
To: Junio Hamano, Eric Wong; +Cc: git, Jay Soffian, Xavier Maillard
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
Documentation/config.txt | 5 +++++
Documentation/git-web--browse.txt | 21 +++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index c72c2e6..2f1ca31 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -420,6 +420,11 @@ branch.<name>.rebase::
it unless you understand the implications (see linkgit:git-rebase[1]
for details).
+browser.<tool>.cmd::
+ Specify the command to invoke the specified browser. The
+ specified command is evaluated in shell with the URLs passed
+ as arguments. (See linkgit:git-web--browse[1].)
+
browser.<tool>.path::
Override the path for the given tool that may be used to
browse HTML help (see '-w' option in linkgit:git-help[1]) or a
diff --git a/Documentation/git-web--browse.txt b/Documentation/git-web--browse.txt
index df57d01..ddbae5b 100644
--- a/Documentation/git-web--browse.txt
+++ b/Documentation/git-web--browse.txt
@@ -27,6 +27,8 @@ The following browsers (or commands) are currently supported:
* dillo
* open (this is the default under Mac OS X GUI)
+Custom commands may also be specified.
+
OPTIONS
-------
-b BROWSER|--browser=BROWSER::
@@ -43,16 +45,35 @@ OPTIONS
CONFIGURATION VARIABLES
-----------------------
+CONF.VAR (from -c option) and web.browser
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
The web browser can be specified using a configuration variable passed
with the -c (or --config) command line option, or the 'web.browser'
configuration variable if the former is not used.
+browser.<tool>.path
+~~~~~~~~~~~~~~~~~~~
+
You can explicitly provide a full path to your preferred browser by
setting the configuration variable 'browser.<tool>.path'. For example,
you can configure the absolute path to firefox by setting
'browser.firefox.path'. Otherwise, 'git-web--browse' assumes the tool
is available in PATH.
+browser.<tool>.cmd
+~~~~~~~~~~~~~~~~~~
+
+When the browser, specified by options or configuration variables, is
+not among the supported ones, then the corresponding
+'browser.<tool>.cmd' configuration variable will be looked up. 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 passed as arguments.
+
+Note about git config --global
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
Note that these configuration variables should probably be set using
the '--global' flag, for example like this:
--
1.5.4.4.598.gcdb00b
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] Documention: web--browse: add info about "browser.<tool>.cmd" config var
2008-03-14 4:56 [PATCH 2/2] Documention: web--browse: add info about "browser.<tool>.cmd" config var Christian Couder
@ 2008-03-15 13:00 ` Xavier Maillard
0 siblings, 0 replies; 2+ messages in thread
From: Xavier Maillard @ 2008-03-15 13:00 UTC (permalink / raw)
To: Christian Couder; +Cc: junkio, normalperson, git, jaysoffian
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
It is ok here to. I can read it and understand it, so given my
english level it may also be understandable for anybody :)
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-15 13:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14 4:56 [PATCH 2/2] Documention: web--browse: add info about "browser.<tool>.cmd" config var Christian Couder
2008-03-15 13:00 ` Xavier Maillard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).