From: Christian Couder <chriscool@tuxfamily.org>
To: Dmitry Potapov <dpotapov@gmail.com>
Cc: Jay Soffian <jaysoffian+git@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] Improve git-help--browse browser support under OS X
Date: Sun, 10 Feb 2008 14:45:15 +0100 [thread overview]
Message-ID: <200802101445.16033.chriscool@tuxfamily.org> (raw)
In-Reply-To: <20080210124336.GH30368@dpotapov.dyndns.org>
Le dimanche 10 février 2008, Dmitry Potapov a écrit :
> On Sat, Feb 09, 2008 at 09:15:30PM -0500, Jay Soffian wrote:
> > I guess I'm confused by the criticism as I thought that's what I did.
> > "open" is only added to the list of browsers to try if the
> > SECURITYSESSIONID environment variable is set (indicating an OS X GUI
> > login environment).
I wonder if "open" works on OS X outside the OS X GUI environment. (And do
people use OS X outside the OS X GUI environment ?)
> > I don't see how the change I made could adversely
> > impact the users of other systems.
>
> Would not be better to use uname instead like this
>
> if test "$(uname -s)" == "Darwin"; then
> ...
> or in addition to SECURITYSESSIONID:
>
> if test -n "$SECURITYSESSIONID" -a "$(uname -s)" == "Darwin"; then
> ...
> ?
>
> I think it would be more reliable and more importantly it makes the
> code easier to understand, because it is clear now for everyone that
> this is OS X specific.
>
> BTW, should not it be mentioned in the documentation? Probably, in
> the list of supported web browsers in git-help.txt.
In the git "next" branch, "git-help--browse" has been
renamed "git-web--browse". And the original patch is
against "git-web--browse" except in the title where it is
about "git-help--browse".
Anyway now in "next", "git-web--browse" is used by both "git help" and "git
instaweb", so the documentation of both commands need an update.
Thanks,
Christian.
next prev parent reply other threads:[~2008-02-10 13:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-08 21:23 [PATCH] Improve git-help--browse browser support under OS X jaysoffian+git
2008-02-09 20:20 ` Dmitry Potapov
2008-02-10 2:15 ` Jay Soffian
2008-02-10 12:43 ` Dmitry Potapov
2008-02-10 13:45 ` Christian Couder [this message]
2008-02-11 2:13 ` Jay Soffian
2008-02-11 5:03 ` Christian Couder
2008-02-11 2:10 ` Jay Soffian
2008-02-11 2:24 ` [PATCH] git-web--browse: improve " jaysoffian+git
2008-02-11 3:01 ` Junio C Hamano
2008-02-11 14:15 ` Jay Soffian
2008-02-12 16:40 ` Jay Soffian
2008-02-13 6:55 ` Christian Couder
2008-02-13 22:14 ` Junio C Hamano
2008-02-13 22:46 ` Pieter de Bie
2008-02-14 0:13 ` Jay Soffian
2008-02-14 5:09 ` Christian Couder
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=200802101445.16033.chriscool@tuxfamily.org \
--to=chriscool@tuxfamily.org \
--cc=dpotapov@gmail.com \
--cc=git@vger.kernel.org \
--cc=jaysoffian+git@gmail.com \
/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).