From: Junio C Hamano <gitster@pobox.com>
To: Christian Couder <chriscool@tuxfamily.org>
Cc: Eric Wong <normalperson@yhbt.net>, git@vger.kernel.org
Subject: Re: [PATCH 2/2] instaweb: use 'browser.<tool>.path' config option if it's set.
Date: Sun, 27 Jan 2008 23:38:52 -0800 [thread overview]
Message-ID: <7vtzkyv1pv.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20080128080225.583dbac8.chriscool@tuxfamily.org> (Christian Couder's message of "Mon, 28 Jan 2008 08:02:25 +0100")
Christian Couder <chriscool@tuxfamily.org> writes:
> Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
> ---
> Documentation/config.txt | 3 ++-
> git-instaweb.sh | 10 +++++++++-
> 2 files changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index c2fedd1..584250c 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -369,7 +369,8 @@ branch.<name>.rebase::
>
> browser.<tool>.path::
> Override the path for the given tool that may be used to
> - browse help. See linkgit:git-help[1].
> + browse help (see linkgit:git-help[1]) or a working repository
> + in gitweb (see linkgit:git-instaweb[1]).
>
> clean.requireForce::
> A boolean to make git-clean do nothing unless given -f
> diff --git a/git-instaweb.sh b/git-instaweb.sh
> index ad0723c..b21a0a5 100755
> --- a/git-instaweb.sh
> +++ b/git-instaweb.sh
> @@ -274,6 +274,14 @@ webrick)
> ;;
> esac
>
> +init_browser_path() {
> + browser_path=`git config browser.$1.path`
Needquote?
> + test -z "$browser_path" && browser_path=$1
> +}
> +
> start_httpd
> url=http://127.0.0.1:$port
> -test -n "$browser" && "$browser" $url || echo $url
> +test -n "$browser" && {
> + init_browser_path "$browser"
> + "$browser_path" $url
> +} || echo $url
> --
> 1.5.4.rc4.16.g1009
prev parent reply other threads:[~2008-01-28 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 7:02 [PATCH 2/2] instaweb: use 'browser.<tool>.path' config option if it's set Christian Couder
2008-01-28 7:38 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vtzkyv1pv.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
--cc=normalperson@yhbt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).