<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.13.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.13.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.13.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-11-29T22:22:18Z</updated>
<entry>
<title>sequencer: use trailer's trailer layout</title>
<updated>2016-11-29T22:22:18Z</updated>
<author>
<name>Jonathan Tan</name>
<email>jonathantanmy@google.com</email>
</author>
<published>2016-11-02T17:29:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=967dfd4d568c2b102281de8cc22ee35f7558358b'/>
<id>urn:sha1:967dfd4d568c2b102281de8cc22ee35f7558358b</id>
<content type='text'>
Make sequencer use trailer.c's trailer layout definition, as opposed to
parsing the footer by itself. This makes "commit -s", "cherry-pick -x",
and "format-patch --signoff" consistent with trailer, allowing
non-trailer lines and multiple-line trailers in trailer blocks under
certain conditions, and therefore suppressing the extra newline in those
cases.

Consistency with trailer extends to respecting trailer configs.  Tests
have been included to show that.

Signed-off-by: Jonathan Tan &lt;jonathantanmy@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/format-patch-rfc'</title>
<updated>2016-09-26T23:09:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-09-26T23:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e447d3182cf77f45402b6fc8a357a2ab466c49dd'/>
<id>urn:sha1:e447d3182cf77f45402b6fc8a357a2ab466c49dd</id>
<content type='text'>
In some projects, it is common to use "[RFC PATCH]" as the subject
prefix for a patch meant for discussion rather than application.  A
new option "--rfc" was a short-hand for "--subject-prefix=RFC PATCH"
to help the participants of such projects.

* jt/format-patch-rfc:
  format-patch: add "--rfc" for the common case of [RFC PATCH]
</content>
</entry>
<entry>
<title>format-patch: add "--rfc" for the common case of [RFC PATCH]</title>
<updated>2016-09-21T15:58:10Z</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2016-09-20T04:23:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68e83a5b8277adfc6f8a307bc2454bc6723717f4'/>
<id>urn:sha1:68e83a5b8277adfc6f8a307bc2454bc6723717f4</id>
<content type='text'>
Add an alias for --subject-prefix='RFC PATCH', which is used
commonly in some development communities to deserve such a
short-hand.

Signed-off-by: Josh Triplett &lt;josh@joshtriplett.org&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: show base info before email signature</title>
<updated>2016-09-15T17:07:10Z</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2016-09-08T01:12:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=480871e09ed2e5275b4ba16b278681e5a8c122ae'/>
<id>urn:sha1:480871e09ed2e5275b4ba16b278681e5a8c122ae</id>
<content type='text'>
Any text below the "-- " for the email signature gets treated as part of
the signature, and many mail clients will trim it from the quoted text
for a reply.  Move it above the signature, so people can reply to it
more easily.

Similarly, when producing the patch as a MIME attachment, the
original code placed the base info after the attached part, which
would be discarded.  Move the base info to the end of the part,
still inside the part boundary.

Add tests for the exact format of the email signature, and add tests
to ensure that the base info appears before the email signature when
producing a plain-text output, and that it appears before the part
boundary when producing a MIME attachment.

Signed-off-by: Josh Triplett &lt;josh@joshtriplett.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/format-patch-from-config'</title>
<updated>2016-08-10T19:33:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-10T19:33:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db40a622395397c84c247d343ef62acc8775d6b2'/>
<id>urn:sha1:db40a622395397c84c247d343ef62acc8775d6b2</id>
<content type='text'>
"git format-patch" learned format.from configuration variable to
specify the default settings for its "--from" option.

* jt/format-patch-from-config:
  format-patch: format.from gives the default for --from
</content>
</entry>
<entry>
<title>format-patch: format.from gives the default for --from</title>
<updated>2016-08-01T20:13:02Z</updated>
<author>
<name>Josh Triplett</name>
<email>josh@joshtriplett.org</email>
</author>
<published>2016-07-30T09:41:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6bc6b6c0dc0a58874a7a6b9afc3156a5cf9bb10d'/>
<id>urn:sha1:6bc6b6c0dc0a58874a7a6b9afc3156a5cf9bb10d</id>
<content type='text'>
This helps users who would prefer format-patch to default to --from,
and makes it easier to change the default in the future.

Signed-off-by: Josh Triplett &lt;josh@joshtriplett.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ew/mboxrd-format-am'</title>
<updated>2016-07-06T20:38:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-07-06T20:38:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e25a4ded8a47333a4c71a224927d6df87d7c295e'/>
<id>urn:sha1:e25a4ded8a47333a4c71a224927d6df87d7c295e</id>
<content type='text'>
Teach format-patch and mailsplit (hence "am") how a line that
happens to begin with "From " in the e-mail message is quoted with
"&gt;", so that these lines can be restored to their original shape.

* ew/mboxrd-format-am:
  am: support --patch-format=mboxrd
  mailsplit: support unescaping mboxrd messages
  pretty: support "mboxrd" output format
</content>
</entry>
<entry>
<title>Merge branch 'jk/shell-portability'</title>
<updated>2016-06-10T22:26:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-06-10T22:26:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=45c0c21eb96ce45f05ffbe8600adf6ac65086415'/>
<id>urn:sha1:45c0c21eb96ce45f05ffbe8600adf6ac65086415</id>
<content type='text'>
test fixes.

* jk/shell-portability:
  t5500 &amp; t7403: lose bash-ism "local"
  test-lib: add in-shell "env" replacement
</content>
</entry>
<entry>
<title>pretty: support "mboxrd" output format</title>
<updated>2016-06-06T18:14:14Z</updated>
<author>
<name>Eric Wong</name>
<email>e@80x24.org</email>
</author>
<published>2016-06-05T04:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9f23e040615857e3909db51a5420f338c9831b5a'/>
<id>urn:sha1:9f23e040615857e3909db51a5420f338c9831b5a</id>
<content type='text'>
This output format prevents format-patch output from breaking
readers if somebody copy+pasted an mbox into a commit message.

Unlike the traditional "mboxo" format, "mboxrd" is designed to
be fully-reversible.  "mboxrd" also gracefully degrades to
showing extra "&gt;" in existing "mboxo" readers.

This degradation is preferable to breaking message splitting
completely, a problem I've seen in "mboxcl" due to having
multiple, non-existent, or inaccurate Content-Length headers.

"mboxcl2" is a non-starter since it's inherits the problems
of "mboxcl" while being completely incompatible with existing
tooling based around mailsplit.

ref: http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/mail-mbox-formats.html

Signed-off-by: Eric Wong &lt;e@80x24.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test-lib: add in-shell "env" replacement</title>
<updated>2016-06-01T15:04:08Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-06-01T07:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d2554c7207896136ad2033776efd29578592a3fb'/>
<id>urn:sha1:d2554c7207896136ad2033776efd29578592a3fb</id>
<content type='text'>
The one-shot environment variable syntax:

  FOO=BAR some-program

is unportable when some-program is actually a shell
function, like test_must_fail (on some shells FOO remains
set after the function returns, and on others it does not).

We sometimes get around this by using env, like:

  test_must_fail env FOO=BAR some-program

But that only works because test_must_fail's arguments are
themselves a command which can be run. You can't run:

  env FOO=BAR test_must_fail some-program

because env does not know about our shell functions. So
there is no equivalent for test_commit, for example, and one
must resort to:

  (
    FOO=BAR
    export FOO
    test_commit
  )

which is a bit verbose.  Let's add a version of "env" that
works _inside_ the shell, by creating a subshell, exporting
variables from its argument list, and running the command.

Its use is demonstrated on a currently-unportable case in
t4014.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
