git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Improve git-help--browse browser support under OS X

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Feb 10, 2008, 12:43 UTC
Message-ID
<20080210124336.GH30368@dpotapov.dyndns.org>
In-Reply-To
<76718490802091815s45c19113t938f5257aad3f46c@mail.gmail.com>
On Sat, Feb 09, 2008 at 09:15:30PM -0500, Jay Soffian wrote:
Show 6 quoted lines
> 
> 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 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.

Dmitry
Previous: Jay SoffianNext: Christian Couder
Message 4 of 17 in “Improve git-help--browse browser support under OS X”
  1. Improve git-help--browse browser support under OS Xjaysoffian+git@gmail.com, Feb 8, 2008
  2. Dmitry PotapovFeb 9, 2008
  3. Jay SoffianFeb 10, 2008
  4. Dmitry PotapovFeb 10, 2008
  5. Christian CouderFeb 10, 2008
  6. Jay SoffianFeb 11, 2008
  7. Christian CouderFeb 11, 2008
  8. Jay SoffianFeb 11, 2008
  9. git-web--browse: improve browser support under OS Xjaysoffian+git@gmail.com, Feb 11, 2008
  10. Junio C HamanoFeb 11, 2008
  11. Jay SoffianFeb 11, 2008
  12. Jay SoffianFeb 12, 2008
  13. Christian CouderFeb 13, 2008
  14. Junio C HamanoFeb 13, 2008
  15. Pieter de BieFeb 13, 2008
  16. Jay SoffianFeb 14, 2008
  17. Christian CouderFeb 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.