<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.45.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2023-11-10T02:04:11Z</updated>
<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>
<entry>
<title>format-patch: correct documentation of --thread without an argument</title>
<updated>2023-04-03T16:59:20Z</updated>
<author>
<name>Alex Henrie</name>
<email>alexhenrie24@gmail.com</email>
</author>
<published>2023-04-03T04:07:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f024913164ae6ec53bd97c0fb8481abb0fecd86d'/>
<id>urn:sha1:f024913164ae6ec53bd97c0fb8481abb0fecd86d</id>
<content type='text'>
In Git, almost all command line flags unconditionally override the
corresponding config option.[1] Add a test to confirm that this is the
case for `git format-patch --thread`.

[1] https://lore.kernel.org/git/CAMMLpeS3+NUQa2oqpHKVo3yWQNVMgkEXrs4U5_ggvk31yQbezQ@mail.gmail.com/

Signed-off-by: Alex Henrie &lt;alexhenrie24@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>e-mail workflow: Message-ID is spelled with ID in both capital letters</title>
<updated>2023-04-03T15:55:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-12-16T01:47:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ba4324c4e1e32a28381ea1f4835b78e4c9d45575'/>
<id>urn:sha1:ba4324c4e1e32a28381ea1f4835b78e4c9d45575</id>
<content type='text'>
We used to write "Message-Id:" and "Message-ID:" pretty much
interchangeably, and the header name is defined to be case
insensitive by the RFCs, but the canonical form "Message-ID:" is
used throughout the RFC documents, so let's imitate it ourselves.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Reviewed-by: Elijah Newren &lt;newren@gmail.com&gt;
</content>
</entry>
</feed>
