{"thread":{"id":"12680","subject":"[PATCH 2/2] Documention: web--browse: add info about \"browser.<tool>.cmd\" config var","startedAt":"2008-03-14T04:56:53Z","lastAt":"2008-03-15T13:00:31Z","messageCount":2,"participants":["Christian Couder","Xavier Maillard"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"72032","messageId":"20080314055653.0e84edbb.chriscool@tuxfamily.org","threadId":"12680","inReplyTo":null,"subject":"[PATCH 2/2] Documention: web--browse: add info about \"browser.<tool>.cmd\" config var","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2008-03-14T04:56:53Z","receivedAt":"2008-03-14T04:56:53Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Signed-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n Documentation/config.txt          |    5 +++++\n Documentation/git-web--browse.txt |   21 +++++++++++++++++++++\n 2 files changed, 26 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/config.txt b/Documentation/config.txt\nindex c72c2e6..2f1ca31 100644\n--- a/Documentation/config.txt\n+++ b/Documentation/config.txt\n@@ -420,6 +420,11 @@ branch.<name>.rebase::\n \tit unless you understand the implications (see linkgit:git-rebase[1]\n \tfor details).\n \n+browser.<tool>.cmd::\n+\tSpecify the command to invoke the specified browser. The\n+\tspecified command is evaluated in shell with the URLs passed\n+\tas arguments. (See linkgit:git-web--browse[1].)\n+\n browser.<tool>.path::\n \tOverride the path for the given tool that may be used to\n \tbrowse HTML help (see '-w' option in linkgit:git-help[1]) or a\ndiff --git a/Documentation/git-web--browse.txt b/Documentation/git-web--browse.txt\nindex df57d01..ddbae5b 100644\n--- a/Documentation/git-web--browse.txt\n+++ b/Documentation/git-web--browse.txt\n@@ -27,6 +27,8 @@ The following browsers (or commands) are currently supported:\n * dillo\n * open (this is the default under Mac OS X GUI)\n \n+Custom commands may also be specified.\n+\n OPTIONS\n -------\n -b BROWSER|--browser=BROWSER::\n@@ -43,16 +45,35 @@ OPTIONS\n CONFIGURATION VARIABLES\n -----------------------\n \n+CONF.VAR (from -c option) and web.browser\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n The web browser can be specified using a configuration variable passed\n with the -c (or --config) command line option, or the 'web.browser'\n configuration variable if the former is not used.\n \n+browser.<tool>.path\n+~~~~~~~~~~~~~~~~~~~\n+\n You can explicitly provide a full path to your preferred browser by\n setting the configuration variable 'browser.<tool>.path'. For example,\n you can configure the absolute path to firefox by setting\n 'browser.firefox.path'. Otherwise, 'git-web--browse' assumes the tool\n is available in PATH.\n \n+browser.<tool>.cmd\n+~~~~~~~~~~~~~~~~~~\n+\n+When the browser, specified by options or configuration variables, is\n+not among the supported ones, then the corresponding\n+'browser.<tool>.cmd' configuration variable will be looked up. If this\n+variable exists then \"git web--browse\" will treat the specified tool\n+as a custom command and will use a shell eval to run the command with\n+the URLs passed as arguments.\n+\n+Note about git config --global\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n Note that these configuration variables should probably be set using\n the '--global' flag, for example like this:\n \n-- \n1.5.4.4.598.gcdb00b\n"},{"id":"72180","messageId":"200803151300.m2FD0Vcc003234@localhost.localdomain","threadId":"12680","inReplyTo":"20080314055653.0e84edbb.chriscool@tuxfamily.org","subject":"Re: [PATCH 2/2] Documention: web--browse: add info about \"browser.<tool>.cmd\" config var","fromName":"Xavier Maillard","fromEmail":"xma@gnu.org","sentAt":"2008-03-15T13:00:31Z","receivedAt":"2008-03-15T13:00:31Z","isPatch":true,"sender":{"key":"xma@gnu.org","avatar":null},"body":"\n   Signed-off-by: Christian Couder <chriscool@tuxfamily.org>\n\nIt is ok here to. I can read it and understand it, so given my\nenglish level it may also be understandable for anybody :)\n\n\tXavier\n-- \nhttp://www.gnu.org\nhttp://www.april.org\nhttp://www.lolica.org\n"}]}