<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-send-email.perl, branch v2.4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.9</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-03-03T22:37:03Z</updated>
<entry>
<title>Merge branch 'km/send-email-getopt-long-workarounds'</title>
<updated>2015-03-03T22:37:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-03T22:37:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0278b3f609f13ecc9d4a31e39057a7c9edf80ec5'/>
<id>urn:sha1:0278b3f609f13ecc9d4a31e39057a7c9edf80ec5</id>
<content type='text'>
Even though we officially haven't dropped Perl 5.8 support, the
Getopt::Long package that came with it does not support "--no-"
prefix to negate a boolean option; manually add support to help
people with older Getopt::Long package.

* km/send-email-getopt-long-workarounds:
  git-send-email.perl: support no- prefix with older GetOptions
</content>
</entry>
<entry>
<title>Merge branch 'jc/send-email-sensible-encoding'</title>
<updated>2015-02-25T23:40:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-25T23:40:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=33a2eeaeade52afee9fb9ffdd2ae995acf3b7e4e'/>
<id>urn:sha1:33a2eeaeade52afee9fb9ffdd2ae995acf3b7e4e</id>
<content type='text'>
"git send-email" used to accept a mistaken "y" (or "yes") as an
answer to "What encoding do you want to use [UTF-8]? " without
questioning.  Now it asks for confirmation when the answer looks
too short to be a valid encoding name.

* jc/send-email-sensible-encoding:
  send-email: ask confirmation if given encoding name is very short
</content>
</entry>
<entry>
<title>git-send-email.perl: support no- prefix with older GetOptions</title>
<updated>2015-02-16T21:26:51Z</updated>
<author>
<name>Kyle J. McKay</name>
<email>mackyle@gmail.com</email>
</author>
<published>2015-01-31T02:40:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f471494303c2d2a085f384eac705379ef2423590'/>
<id>urn:sha1:f471494303c2d2a085f384eac705379ef2423590</id>
<content type='text'>
Only Perl version 5.8.0 or later is required, but that comes with
an older Getopt::Long (2.32) that does not support the 'no-'
prefix.  Support for that was added in Getopt::Long version 2.33.

Since the help only mentions the 'no-' prefix and not the 'no'
prefix, add explicit support for the 'no-' prefix to support
older GetOptions versions.

Reported-by: Tom G. Christensen &lt;tgc@statsbiblioteket.dk&gt;
Signed-off-by: Kyle J. McKay &lt;mackyle@gmail.com&gt;
Tested-by: Tom G. Christensen &lt;tgc@statsbiblioteket.dk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: ask confirmation if given encoding name is very short</title>
<updated>2015-02-13T20:20:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-02-13T20:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=852a15d748034eec87adbee73a72689c8936fb8b'/>
<id>urn:sha1:852a15d748034eec87adbee73a72689c8936fb8b</id>
<content type='text'>
Sometimes people respond "y&lt;ENTER&gt;" (or "yes&lt;ENTER&gt;") when asked
this question:

    Which 8bit encoding should I declare [UTF-8]?

We already have a mechanism to avoid accepting a mistyped e-mail
address (we ask to confirm when the given address lacks "@" in it);
reuse it to trigger the same confirmation when given a very short
answer.  As a typical charset name is probably at least 4 chars or
longer (e.g. "UTF8" spelled without the dash, or "Big5"), this would
prevent such a mistake.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lh/send-email-hide-x-mailer'</title>
<updated>2015-01-07T21:07:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-07T21:07:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5095fa61e38c92cbc8c603880f04f0d6127ae72e'/>
<id>urn:sha1:5095fa61e38c92cbc8c603880f04f0d6127ae72e</id>
<content type='text'>
"git send-email" normally identifies itself via X-Mailer: header
in the message it sends out.  A new command line flag allows the
user to squelch the header.

* lh/send-email-hide-x-mailer:
  test/send-email: --[no-]xmailer tests
  send-email: add --[no-]xmailer option
</content>
</entry>
<entry>
<title>Merge branch 'rd/send-email-2047-fix'</title>
<updated>2015-01-07T21:06:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-01-07T21:06:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=948e81408d29be0d39b55d5da41a6c7c9b93fbc0'/>
<id>urn:sha1:948e81408d29be0d39b55d5da41a6c7c9b93fbc0</id>
<content type='text'>
"git send-email" did not handle RFC 2047 encoded headers quite
right.

* rd/send-email-2047-fix:
  send-email: handle adjacent RFC 2047-encoded words properly
  send-email: align RFC 2047 decoding more closely with the spec
</content>
</entry>
<entry>
<title>send-email: add --[no-]xmailer option</title>
<updated>2014-12-15T23:17:25Z</updated>
<author>
<name>Luis Henriques</name>
<email>henrix@camandro.org</email>
</author>
<published>2014-03-24T21:38:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ac1596a684a44144efa2d52d9104b0d627e6d9a1'/>
<id>urn:sha1:ac1596a684a44144efa2d52d9104b0d627e6d9a1</id>
<content type='text'>
Add --[no-]xmailer that allows a user to disable adding the 'X-Mailer:'
header to the email being sent.

Signed-off-by: Luis Henriques &lt;henrix@camandro.org&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: handle adjacent RFC 2047-encoded words properly</title>
<updated>2014-12-15T17:06:40Z</updated>
<author>
<name>Роман Донченко</name>
<email>dpb@corrigendum.ru</email>
</author>
<published>2014-12-14T15:59:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ab47e2a583917ecef5da269cc640f8359c8467ac'/>
<id>urn:sha1:ab47e2a583917ecef5da269cc640f8359c8467ac</id>
<content type='text'>
The RFC says that they are to be concatenated after decoding (i.e. the
intervening whitespace is ignored).

Signed-off-by: Роман Донченко &lt;dpb@corrigendum.ru&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>send-email: align RFC 2047 decoding more closely with the spec</title>
<updated>2014-12-15T17:06:39Z</updated>
<author>
<name>Роман Донченко</name>
<email>dpb@corrigendum.ru</email>
</author>
<published>2014-12-14T15:59:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=11f70a7e29ff7167e89aad186d763a4b017e48d9'/>
<id>urn:sha1:11f70a7e29ff7167e89aad186d763a4b017e48d9</id>
<content type='text'>
More specifically:

* Add "\" to the list of characters not allowed in a token (see RFC 2047
  errata).

* Share regexes between unquote_rfc2047 and is_rfc2047_quoted. Besides
  removing duplication, this also makes unquote_rfc2047 more stringent.

* Allow both "q" and "Q" to identify the encoding.

* Allow lowercase hexadecimal digits in the "Q" encoding.

And, more on the cosmetic side:

* Change the "encoded-text" regex to exclude rather than include characters,
  for clarity and consistency with "token".

Signed-off-by: Роман Донченко &lt;dpb@corrigendum.ru&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-send-email: add --transfer-encoding option</title>
<updated>2014-11-25T22:00:15Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2014-11-25T14:00:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d8140843501107c92e2f9a5acb60ee136352c1f'/>
<id>urn:sha1:8d8140843501107c92e2f9a5acb60ee136352c1f</id>
<content type='text'>
The thread at http://thread.gmane.org/gmane.comp.version-control.git/257392
details problems when applying patches with "git am" in a repository with
CRLF line endings.  In the example in the thread, the repository originated
from "git-svn" so it is not possible to use core.eol and friends on it.

Right now, the best option is to use "git am --keep-cr".  However, when
a patch create new files, the patch application process will reject the
new file because it finds a "/dev/null\r" string instead of "/dev/null".

The problem is that SMTP transport is CRLF-unsafe.  Sending a patch by
email is the same as passing it through "dos2unix | unix2dos".  The newly
introduced CRLFs are normally transparent because git-am strips them. The
keepcr=true setting preserves them, but it is mostly working by chance
and it would be very problematic to have a "git am" workflow in a
repository with mixed LF and CRLF line endings.

The MIME solution to this is the quoted-printable transfer enconding.
This is not something that we want to enable by default, since it makes
received emails horrible to look at.  However, it is a very good match
for projects that store CRLF line endings in the repository.

The only disadvantage of quoted-printable is that quoted-printable
patches fail to apply if the maintainer uses "git am --keep-cr".  This
is because the decoded patch will have two carriage returns at the end
of the line.  Therefore, add support for base64 transfer encoding too,
which makes received emails downright impossible to look at outside
a MUA, but really just works.

The patch covers all bases, including users that still live in the late
80s, by also providing a 7bit content transfer encoding that refuses
to send emails with non-ASCII character in them.  And finally, "8bit"
will add a Content-Transfer-Encoding header but otherwise do nothing.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
