<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.45.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-07-02T16:27:56Z</updated>
<entry>
<title>Merge branch 'ds/format-patch-rfc-and-k' into maint-2.45</title>
<updated>2024-07-02T16:27:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-07-02T16:27:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f13710e32e69fd267c61035731af61913db2060b'/>
<id>urn:sha1:f13710e32e69fd267c61035731af61913db2060b</id>
<content type='text'>
The "-k" and "--rfc" options of "format-patch" will now error out
when used together, as one tells us not to add anything to the
title of the commit, and the other one tells us to add "RFC" in
addition to "PATCH".

* ds/format-patch-rfc-and-k:
  format-patch: ensure that --rfc and -k are mutually exclusive
</content>
</entry>
<entry>
<title>format-patch: ensure that --rfc and -k are mutually exclusive</title>
<updated>2024-04-19T15:40:57Z</updated>
<author>
<name>Dragan Simic</name>
<email>dsimic@manjaro.org</email>
</author>
<published>2024-04-19T01:05:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cadcf58085cada6e781444cbdde6d4b0067ebe4c'/>
<id>urn:sha1:cadcf58085cada6e781444cbdde6d4b0067ebe4c</id>
<content type='text'>
Fix a bug that allows the "--rfc" and "-k" options to be specified together
when "git format-patch" is executed, which was introduced in the commit
e0d7db7423a9 ("format-patch: --rfc honors what --subject-prefix sets").

Add a couple of additional tests to t4014, to cover additional cases of
the mutual exclusivity between different "git format-patch" options.

Signed-off-by: Dragan Simic &lt;dsimic@manjaro.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: fix ignored encode_email_headers for cover letter</title>
<updated>2023-11-10T02:04:11Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2023-11-09T11:19:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=219d54ae8c96bcb84d0216797af7572fff7199b8'/>
<id>urn:sha1:219d54ae8c96bcb84d0216797af7572fff7199b8</id>
<content type='text'>
When writing the cover letter, the encode_email_headers option was
ignored. That is, UTF-8 subject lines and email addresses were
written out as-is, without any Q-encoding, even if
--encode-email-headers was passed on the command line.

This is due to encode_email_headers not being copied over from
struct rev_info to struct pretty_print_context. Fix that and add
a test.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/test-i18ngrep'</title>
<updated>2023-11-08T02:04:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-11-08T02:04:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a8e2394704d0543f4e1f1ac6ea532d098316d97e'/>
<id>urn:sha1:a8e2394704d0543f4e1f1ac6ea532d098316d97e</id>
<content type='text'>
Another step to deprecate test_i18ngrep.

* jc/test-i18ngrep:
  tests: teach callers of test_i18ngrep to use test_grep
  test framework: further deprecate test_i18ngrep
</content>
</entry>
<entry>
<title>tests: teach callers of test_i18ngrep to use test_grep</title>
<updated>2023-11-02T08:13:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-10-31T05:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6789275d3780bcb950e6be8557aeedf160d4ad6d'/>
<id>urn:sha1:6789275d3780bcb950e6be8557aeedf160d4ad6d</id>
<content type='text'>
They are equivalents and the former still exists, so as long as the
only change this commit makes are to rewrite test_i18ngrep to
test_grep, there won't be any new bug, even if there still are
callers of test_i18ngrep remaining in the tree, or when merged to
other topics that add new uses of test_i18ngrep.

This patch was produced more or less with

    git grep -l -e 'test_i18ngrep ' 't/t[0-9][0-9][0-9][0-9]-*.sh' |
    xargs perl -p -i -e 's/test_i18ngrep /test_grep /'

and a good way to sanity check the result yourself is to run the
above in a checkout of c4603c1c (test framework: further deprecate
test_i18ngrep, 2023-10-31) and compare the resulting working tree
contents with the result of applying this patch to the same commit.
You'll see that test_i18ngrep in a few t/lib-*.sh files corrected,
in addition to the manual reproduction.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'dd/format-patch-rfc-updates'</title>
<updated>2023-09-07T22:06:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-09-07T22:06:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=09684a12b05b6c01c638cb14e3d765a93d154e32'/>
<id>urn:sha1:09684a12b05b6c01c638cb14e3d765a93d154e32</id>
<content type='text'>
"git format-patch --rfc --subject-prefix=&lt;foo&gt;" used to ignore the
"--subject-prefix" option and used "[RFC PATCH]"; now we will add
"RFC" prefix to whatever subject prefix is specified.

This is a backward compatible change that may deserve a note.

* dd/format-patch-rfc-updates:
  format-patch: --rfc honors what --subject-prefix sets
</content>
</entry>
<entry>
<title>format-patch: --rfc honors what --subject-prefix sets</title>
<updated>2023-08-31T22:02:21Z</updated>
<author>
<name>Drew DeVault</name>
<email>sir@cmpwn.com</email>
</author>
<published>2023-08-30T06:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e0d7db7423a91673c001aaa5e580c815ce2f7f92'/>
<id>urn:sha1:e0d7db7423a91673c001aaa5e580c815ce2f7f92</id>
<content type='text'>
Rather than replacing the configured subject prefix (either through the
git config or command line) entirely with "RFC PATCH", this change
prepends RFC to whatever subject prefix was already in use.

This is useful, for example, when a user is working on a repository that
has a subject prefix considered to disambiguate patches:

	git config format.subjectPrefix 'PATCH my-project'

Prior to this change, formatting patches with --rfc would lose the
'my-project' information.

The data flow for the subject-prefix was that rev.subject_prefix
were to be kept the authoritative version of the subject prefix even
while parsing command line options, and sprefix variable was used as
a temporary area to futz with it.  Now, the parsing code has been
refactored to build the subject prefix into the sprefix variable and
assigns its value at the end to rev.subject_prefix, which makes the
flow easier to grasp.

Signed-off-by: Drew DeVault &lt;sir@cmpwn.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: add --description-file option</title>
<updated>2023-08-21T22:03:47Z</updated>
<author>
<name>Oswald Buddenhagen</name>
<email>oswald.buddenhagen@gmx.de</email>
</author>
<published>2023-08-21T17:07:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67f4b36e339d91c06ff9cdc254864c830158e10f'/>
<id>urn:sha1:67f4b36e339d91c06ff9cdc254864c830158e10f</id>
<content type='text'>
This patch makes it possible to directly feed a branch description to
derive the cover letter from. The use case is formatting dynamically
created temporary commits which are not referenced anywhere.

The most obvious alternative would be creating a temporary branch and
setting a description on it, but that doesn't seem particularly elegant.

Signed-off-by: Oswald Buddenhagen &lt;oswald.buddenhagen@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ah/format-patch-thread-doc'</title>
<updated>2023-04-21T22:35:05Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-04-21T22:35:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e0d1aa495bd26f4688b915ac5c3cb656c9f7174'/>
<id>urn:sha1:9e0d1aa495bd26f4688b915ac5c3cb656c9f7174</id>
<content type='text'>
Doc update.

* ah/format-patch-thread-doc:
  format-patch: correct documentation of --thread without an argument
</content>
</entry>
<entry>
<title>Merge branch 'jc/spell-id-in-both-caps-in-message-id'</title>
<updated>2023-04-11T20:49:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-04-11T20:49:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=647a2bb3ffc02ed06a36d6bae35e76004e9f97d7'/>
<id>urn:sha1:647a2bb3ffc02ed06a36d6bae35e76004e9f97d7</id>
<content type='text'>
Consistently spell "Message-ID" as such, not "Message-Id".

* jc/spell-id-in-both-caps-in-message-id:
  e-mail workflow: Message-ID is spelled with ID in both capital letters
</content>
</entry>
</feed>
