<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.22.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.22.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.22.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-02-22T22:25:35Z</updated>
<entry>
<title>format-patch: notice failure to open cover letter for writing</title>
<updated>2019-02-22T22:25:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-02-22T19:26:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2fe95f494cde6cb3c3e6894bb687961b28b1764b'/>
<id>urn:sha1:2fe95f494cde6cb3c3e6894bb687961b28b1764b</id>
<content type='text'>
The make_cover_letter() function is supposed to open a new file for
writing, and let the caller write into it via FILE *rev-&gt;diffopt.file
but because the function does not return anything, the caller does not
bother checking the return value.

Make sure it dies, instead of keep going with a NULL output
filestream and relying on it to cause a crash, when it fails to
open the file.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: allow --interdiff to apply to a lone-patch</title>
<updated>2018-07-23T19:50:06Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee6cbf712edcbd1dc14993ab2452fbe882dc524a'/>
<id>urn:sha1:ee6cbf712edcbd1dc14993ab2452fbe882dc524a</id>
<content type='text'>
When submitting a revised version of a patch or series, it can be
helpful (to reviewers) to include a summary of changes since the
previous attempt in the form of an interdiff, typically in the cover
letter. However, it is occasionally useful, despite making for a noisy
read, to insert an interdiff into the commentary section of the lone
patch of a 1-patch series.

Therefore, extend "git format-patch --interdiff=&lt;prev&gt;" to insert an
interdiff into the commentary section of a lone patch rather than
requiring a cover letter. The interdiff is indented to avoid confusing
git-am and human readers into considering it part of the patch proper.

Implementation note: Generating an interdiff for insertion into the
commentary section of a patch which itself is currently being generated
requires invoking the diffing machinery recursively. However, the
machinery does not (presently) support this since it uses global state.
Consequently, we need to take care to stash away the state of the
in-progress operation while generating the interdiff, and restore it
after.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: teach --interdiff to respect -v/--reroll-count</title>
<updated>2018-07-23T19:50:06Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ac290f9c00edb8963585c322fae9fb06a98167d'/>
<id>urn:sha1:5ac290f9c00edb8963585c322fae9fb06a98167d</id>
<content type='text'>
The --interdiff option introduces the embedded interdiff generically as
"Interdiff:", however, we can do better when --reroll-count is specified
by emitting "Interdiff against v{n}:" instead.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: add --interdiff option to embed diff in cover letter</title>
<updated>2018-07-23T19:50:06Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=126facf8219177bc265be725a8579c86ebdf99a5'/>
<id>urn:sha1:126facf8219177bc265be725a8579c86ebdf99a5</id>
<content type='text'>
When submitting a revised version of a patch series, it can be helpful
(to reviewers) to include a summary of changes since the previous
attempt in the form of an interdiff, however, doing so involves manually
copy/pasting the diff into the cover letter.

Add an --interdiff option to automate this process. The argument to
--interdiff specifies the tip of the previous attempt against which to
generate the interdiff. For example:

    git format-patch --cover-letter --interdiff=v1 -3 v2

The previous attempt and the patch series being formatted must share a
common base.

Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'xy/format-patch-prereq-patch-id-fix'</title>
<updated>2018-07-18T19:20:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-07-18T19:20:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2516b4711f6e180516162c384b7e94832e7189f6'/>
<id>urn:sha1:2516b4711f6e180516162c384b7e94832e7189f6</id>
<content type='text'>
Recently added "--base" option to "git format-patch" command did
not correctly generate prereq patch ids.

* xy/format-patch-prereq-patch-id-fix:
  format-patch: clear UNINTERESTING flag before prepare_bases
</content>
</entry>
<entry>
<title>format-patch: clear UNINTERESTING flag before prepare_bases</title>
<updated>2018-06-19T18:36:41Z</updated>
<author>
<name>Xiaolong Ye</name>
<email>xiaolong.ye@intel.com</email>
</author>
<published>2018-06-04T15:05:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15b76c1fb3ab013b99498c9dca333aaa4808927e'/>
<id>urn:sha1:15b76c1fb3ab013b99498c9dca333aaa4808927e</id>
<content type='text'>
When users specify the commit range with 'Z..C' pattern for format-patch, all
the parents of Z (including Z) would be marked as UNINTERESTING which would
prevent revision walk in prepare_bases from getting the prerequisite commits,
thus `git format-patch --base &lt;base_commit_sha&gt; Z..C` won't be able to generate
the list of prerequisite patch ids. Clear UNINTERESTING flag with
clear_object_flags solves this issue.

Reported-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Signed-off-by: Xiaolong Ye &lt;xiaolong.ye@intel.com&gt;
Reviewed-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<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>
</feed>
