<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/thunderbird-patch-inline, branch v2.50.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.50.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.50.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2025-02-11T00:16:19Z</updated>
<entry>
<title>thunderbird-patch-inline: avoid bashism</title>
<updated>2025-02-11T00:16:19Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2025-02-10T23:49:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59d26bd9619c1bb37b1ccb4a93a71221bec46e12'/>
<id>urn:sha1:59d26bd9619c1bb37b1ccb4a93a71221bec46e12</id>
<content type='text'>
The use of "echo -e" is not portable and not specified by POSIX.  dash
does not support any options except "-n", and so this script will not
work on operating systems which use that as /bin/sh.

Fortunately, the solution is easy: switch to printf(1), which is
specified by POSIX and allows the escape sequences we want to use.  This
will allow the script to work with any POSIX shell.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>contrib/thunderbird-patch-inline/appp.sh: use the $( ... ) construct for command substitution</title>
<updated>2015-12-27T23:33:13Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2015-12-22T14:10:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=57eb1bef7d86507437ebdfa5a855508e6ab05035'/>
<id>urn:sha1:57eb1bef7d86507437ebdfa5a855508e6ab05035</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
	perl -i -pe 'BEGIN{undef $/;} s/`(.+?)`/\$(\1)/smg'  "${_f}"
done

and then carefully proof-read.

Signed-off-by: Elia Pinto &lt;gitter.spiros@gmail.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>appp.sh: use the $( ... ) construct for command substitution</title>
<updated>2014-04-23T22:17:01Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-04-23T13:43:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=faf58f4ee6a5599c3b8790b770d6e1736174b7a3'/>
<id>urn:sha1:faf58f4ee6a5599c3b8790b770d6e1736174b7a3</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>contrib/thunderbird-patch-inline: do not require bash to run the script</title>
<updated>2011-03-30T19:29:39Z</updated>
<author>
<name>Maxin john</name>
<email>maxin@maxinbjohn.info</email>
</author>
<published>2011-03-30T08:52:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=806e0aba2e5d976233703e6ff517af10329e4048'/>
<id>urn:sha1:806e0aba2e5d976233703e6ff517af10329e4048</id>
<content type='text'>
The script does not have to be run under bash, but any POSIX compliant
shell would do, as it does not use any bash-isms.

It may be written under a different style than what is recommended in
Documentation/CodingGuidelines, but that is a different matter.

While at it, fix obvious typos in the comment.

Signed-off-by: Maxin B. John &lt;maxin@maxinbjohn.info&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: fix typos / spelling mistakes</title>
<updated>2009-04-20T22:56:07Z</updated>
<author>
<name>Mike Ralphson</name>
<email>mike@abacus.co.uk</email>
</author>
<published>2009-04-17T18:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=680ebc01806187b33cab9093c39102468298350f'/>
<id>urn:sha1:680ebc01806187b33cab9093c39102468298350f</id>
<content type='text'>
Signed-off-by: Mike Ralphson &lt;mike@abacus.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add a helper script to send patches with Mozilla Thunderbird</title>
<updated>2008-06-20T05:40:42Z</updated>
<author>
<name>Lukas Sandström</name>
<email>lukass@etek.chalmers.se</email>
</author>
<published>2008-06-19T23:21:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0c3d26d24ab913a8cc6f478d176f5896af28c03c'/>
<id>urn:sha1:0c3d26d24ab913a8cc6f478d176f5896af28c03c</id>
<content type='text'>
The script appp.sh can be used with the External Editor extension for
Mozilla Thunderbird in order to be able to send inline patches in an
easy way.

Signed-off-by: Lukas Sandström &lt;lukass@etek.chalmers.se&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
