<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-05-30T12:51:28Z</updated>
<entry>
<title>Merge branch 'bc/hash-independent-tests'</title>
<updated>2018-05-30T12:51:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-05-30T12:51:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9472b13201aea57d7f9212ca2678aba4d6dbdfdb'/>
<id>urn:sha1:9472b13201aea57d7f9212ca2678aba4d6dbdfdb</id>
<content type='text'>
Many tests hardcode the raw object names, which would change once
we migrate away from SHA-1.  While some of them must test against
exact object names, most of them do not have to use hardcoded
constants in the test.  The latter kind of tests have been updated
to test the moral equivalent of the original without hardcoding the
actual object names.

* bc/hash-independent-tests: (28 commits)
  t5300: abstract away SHA-1-specific constants
  t4208: abstract away SHA-1-specific constants
  t4045: abstract away SHA-1-specific constants
  t4042: abstract away SHA-1-specific constants
  t4205: sort log output in a hash-independent way
  t/lib-diff-alternative: abstract away SHA-1-specific constants
  t4030: abstract away SHA-1-specific constants
  t4029: abstract away SHA-1-specific constants
  t4029: fix test indentation
  t4022: abstract away SHA-1-specific constants
  t4020: abstract away SHA-1-specific constants
  t4014: abstract away SHA-1-specific constants
  t4008: abstract away SHA-1-specific constants
  t4007: abstract away SHA-1-specific constants
  t3905: abstract away SHA-1-specific constants
  t3702: abstract away SHA-1-specific constants
  t3103: abstract away SHA-1-specific constants
  t2203: abstract away SHA-1-specific constants
  t: skip pack tests if not using SHA-1
  t4044: skip test if not using SHA-1
  ...
</content>
</entry>
<entry>
<title>t4014: abstract away SHA-1-specific constants</title>
<updated>2018-05-21T04:55:48Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-21T02:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdee9cd6c163d8b89a1ef87bbc09e394737df766'/>
<id>urn:sha1:bdee9cd6c163d8b89a1ef87bbc09e394737df766</id>
<content type='text'>
Adjust the test so that it computes values for blobs instead of using
hard-coded hashes.

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>t: switch $_x40 to $OID_REGEX</title>
<updated>2018-05-14T02:02:01Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-13T02:24:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ece6ad2819078733d8fb8a7cd47929786631ed1'/>
<id>urn:sha1:2ece6ad2819078733d8fb8a7cd47929786631ed1</id>
<content type='text'>
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with
larger hashes.  This commit was created by using the following sed
command to modify all files in the t directory except t/test-lib.sh:

  sed -i 's/\$_x40/$OID_REGEX/g'

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>t: switch $_z40 to $ZERO_OID</title>
<updated>2018-05-14T02:02:00Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-13T02:24:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8125a58b912e52eba7889e1dba9fe6d711b0ffdf'/>
<id>urn:sha1:8125a58b912e52eba7889e1dba9fe6d711b0ffdf</id>
<content type='text'>
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with
larger hashes.  This commit was created by using the following sed
command to modify all files in the t directory except t/test-lib.sh:

  sed -i 's/\$_z40/$ZERO_OID/g'

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>format-patch: make cover letters always text/plain</title>
<updated>2018-05-02T03:55:00Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-02T02:20:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=50cd54ef4e6f4279683b61417a35de7297b55b9d'/>
<id>urn:sha1:50cd54ef4e6f4279683b61417a35de7297b55b9d</id>
<content type='text'>
When formatting a series of patches using --attach and --cover-letter,
the cover letter lacks the closing MIME boundary, violating RFC 2046.
Certain clients, such as Thunderbird, discard the message body in such a
case.

Since the cover letter is just one part and sending it as
multipart/mixed is not very useful, always emit it as text/plain,
avoiding the boundary problem altogether.

Reported-by: Patrick Hemmer &lt;git@stormcloud9.net&gt;
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>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>
</feed>
