{"thread":{"id":"11135","subject":"[PATCH] Documentation: describe -w/--web option to \"git-help\".","startedAt":"2007-12-05T05:09:40Z","lastAt":"2007-12-05T05:09:40Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"61962","messageId":"20071205060940.20687a64.chriscool@tuxfamily.org","threadId":"11135","inReplyTo":null,"subject":"[PATCH] Documentation: describe -w/--web option to \"git-help\".","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2007-12-05T05:09:40Z","receivedAt":"2007-12-05T05:09:40Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Also explain that \"git instaweb\" may use \"web.browser\" config\nvariable.\n\nSigned-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n Documentation/git-help.txt     |   21 +++++++++++++++++++--\n Documentation/git-instaweb.txt |    3 +++\n 2 files changed, 22 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-help.txt b/Documentation/git-help.txt\nindex c94e27b..ac9e15d 100644\n--- a/Documentation/git-help.txt\n+++ b/Documentation/git-help.txt\n@@ -7,7 +7,7 @@ git-help - display help information about git\n \n SYNOPSIS\n --------\n-'git help' [-a|--all|-i|--info] [COMMAND]\n+'git help' [-a|--all|-i|--info|-w|--web] [COMMAND]\n \n DESCRIPTION\n -----------\n@@ -29,7 +29,6 @@ former is internally converted into the latter.\n OPTIONS\n -------\n -a|--all::\n-\n \tPrints all the available commands on the standard output. This\n \toption superseeds any other option.\n \n@@ -37,6 +36,24 @@ OPTIONS\n \tUse the 'info' program to display the manual page, instead of\n \tthe 'man' program that is used by default.\n \n+-w|--web::\n+\tUse a web browser to display the HTML manual page, instead of\n+\tthe 'man' program that is used by default.\n++\n+The web browser can be specified using the configuration variable\n+'help.browser', or 'web.browser' if the former is not set. If none of\n+these config variables is set, the 'git-browse-help' script (called by\n+'git-help') will pick a suitable default.\n++\n+You can explicitly provide a full path to your prefered 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-browse-help' assumes the tool\n+is available in PATH.\n++\n+Note that the script tries, as much as possible, to display the HTML\n+page in a new tab on an already opened browser.\n+\n Author\n ------\n Written by Junio C Hamano <gitster@pobox.com> and the git-list\ndiff --git a/Documentation/git-instaweb.txt b/Documentation/git-instaweb.txt\nindex 735008c..d2ce779 100644\n--- a/Documentation/git-instaweb.txt\n+++ b/Documentation/git-instaweb.txt\n@@ -71,6 +71,9 @@ You may specify configuration in your .git/config\n \n -----------------------------------------------------------------------\n \n+If the configuration variable 'instaweb.browser' is not set,\n+'web.browser' will be used instead if it is defined.\n+\n Author\n ------\n Written by Eric Wong <normalperson@yhbt.net>\n-- \n1.5.3.6.1993.g154f-dirty\n"}]}