<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-web--browse.sh, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-04-23T22:17:02Z</updated>
<entry>
<title>git-web--browse.sh: use the $( ... ) construct for command substitution</title>
<updated>2014-04-23T22:17:02Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-04-23T13:44:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e5878fbede57c0499133adf73844261849cd7b2'/>
<id>urn:sha1:9e5878fbede57c0499133adf73844261849cd7b2</id>
<content type='text'>
The Git CodingGuidelines prefer the $(...) construct for command
substitution instead of using the backquotes `...`.

The backquoted form is the traditional method for command
substitution, and is supported by POSIX.  However, all but the
simplest uses become complicated quickly.  In particular, embedded
command substitutions and/or the use of double quotes require
careful escaping with the backslash character.

The patch was generated by:

for _f in $(find . -name "*.sh")
do
   sed -i 's@`\(.*\)`@$(\1)@g' ${_f}
done

and then carefully proof-read.

Signed-off-by: Elia Pinto &lt;gitter.spiros@gmail.com&gt;
Reviewed-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>web--browse: Add support for xdg-open</title>
<updated>2013-10-30T20:54:15Z</updated>
<author>
<name>Rüdiger Sonderfeld</name>
<email>ruediger@c-plusplus.de</email>
</author>
<published>2013-10-26T17:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6ca0f80b6c4d17843a9773d5fd909395f786731d'/>
<id>urn:sha1:6ca0f80b6c4d17843a9773d5fd909395f786731d</id>
<content type='text'>
xdg-open is a tool similar to git-web--browse.  It opens a file or URL in the
user's preferred application.  It could probably be made default at least on
Linux with a graphical environment.

Signed-off-by: Rüdiger Sonderfeld &lt;ruediger@c-plusplus.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>web--browse: support /usr/bin/cygstart on Cygwin</title>
<updated>2013-06-21T16:05:15Z</updated>
<author>
<name>Yaakov Selkowitz</name>
<email>yselkowitz@users.sourceforge.net</email>
</author>
<published>2013-06-21T07:24:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cc2f6b686575e2b7664d22d1266fc55197bc7e81'/>
<id>urn:sha1:cc2f6b686575e2b7664d22d1266fc55197bc7e81</id>
<content type='text'>
While both GUI and console Cygwin browsers do exist, anecdotal evidence
suggests most users rely on their native Windows browser.  cygstart,
which is a long-standing part of the base Cygwin installation, will
cause the page to be opened in the default Windows browser (the one
registered to open .html files).

Signed-off-by: Yaakov Selkowitz &lt;yselkowitz@users.sourceforge.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-web--browse: recognize any TERM_PROGRAM as a GUI terminal on OS X</title>
<updated>2013-03-29T22:24:31Z</updated>
<author>
<name>John Szakmeister</name>
<email>john@szakmeister.net</email>
</author>
<published>2013-03-25T10:13:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=be537e43ca8c6e38a3cf7024b28d6daf54611132'/>
<id>urn:sha1:be537e43ca8c6e38a3cf7024b28d6daf54611132</id>
<content type='text'>
It turns out that the presence of SECURITYSESSIONID is not sufficient
for detecting the presence of a GUI under Mac OS X.  SECURITYSESSIONID
appears to only be set when the user has Screen Sharing enabled.
Disabling Screen Sharing and relaunching the shell showed that the
variable was missing, at least under Mac OS X 10.6.8.

On the other hand, TERM_PROGRAM seems to be set for any terminals on
OS X, so just check it is set to something, instead of hardcoding
"Apple_Terminal" and missing other terminals such as iTerm.app.

Signed-off-by: John Szakmeister &lt;john@szakmeister.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-web--browse: avoid the use of eval</title>
<updated>2011-10-03T17:47:07Z</updated>
<author>
<name>Chris Packham</name>
<email>judge.packham@gmail.com</email>
</author>
<published>2011-10-02T00:44:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=480f062cecdd4f662b1d2ed5d497b6f458974b22'/>
<id>urn:sha1:480f062cecdd4f662b1d2ed5d497b6f458974b22</id>
<content type='text'>
Using eval causes problems when the URL contains an appropriately
escaped ampersand (\&amp;). Dropping eval from the built-in browser
invocation avoids the problem.

Helped-by: Jeff King &lt;peff@peff.net&gt; (test case)
Signed-off-by: Chris Packham &lt;judge.packham@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>web--browse: better support for chromium</title>
<updated>2010-12-03T22:05:32Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2010-12-03T16:47:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14ea67c0071804b7eb73cca35c87860f8fc6db95'/>
<id>urn:sha1:14ea67c0071804b7eb73cca35c87860f8fc6db95</id>
<content type='text'>
On Debian-based distributions, Chromium the browser is available under
the name chromium-browser rather than chromium, to prevent conflicts
with the Chromium B.S.U. game.

Look for chromium-browser first when setting the path for chromium, and
also add chromium-browser as a supported browser name. Document the
dual-name support, and mention the dual-name support for
(google-)chrome too.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>web--browse: support opera, seamonkey and elinks</title>
<updated>2010-12-03T21:49:14Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2010-12-03T16:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81f42f11496b9117273939c98d270af273c8a463'/>
<id>urn:sha1:81f42f11496b9117273939c98d270af273c8a463</id>
<content type='text'>
The list of supported browsers is also updated in the documentation.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>web--browse: split valid_tool list</title>
<updated>2010-12-03T21:46:24Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2010-12-03T16:47:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b968708b3ed486a25c65a8481af927ab3884bfba'/>
<id>urn:sha1:b968708b3ed486a25c65a8481af927ab3884bfba</id>
<content type='text'>
It was getting too long, and we want to add some more.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>web--browse: coding style</title>
<updated>2010-12-03T21:44:07Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2010-12-03T16:47:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a180055a47c6793eaaba6289f623cff32644215b'/>
<id>urn:sha1:a180055a47c6793eaaba6289f623cff32644215b</id>
<content type='text'>
Retab and deindent choices in case statements.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add a google-chrome option for web--browse</title>
<updated>2010-07-26T06:14:18Z</updated>
<author>
<name>Nathan W. Panike</name>
<email>nathan.panike@gmail.com</email>
</author>
<published>2010-07-22T16:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec136663c7d5a8e2ce1664ce79f2297e2e61c86f'/>
<id>urn:sha1:ec136663c7d5a8e2ce1664ce79f2297e2e61c86f</id>
<content type='text'>
On some systems, the chrome browser is named google-chrome.  We add
support for this case.

Signed-off-by: Nathan W. Panike &lt;nathan.panike@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
