<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-format-patch.txt, branch v2.40.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.40.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.40.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-08-29T21:39:13Z</updated>
<entry>
<title>format-patch: learn format.forceInBodyFrom configuration variable</title>
<updated>2022-08-29T21:39:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-08-29T21:38:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d5fc07df688ace8c5a32f66b358ebd55cdaf4d28'/>
<id>urn:sha1:d5fc07df688ace8c5a32f66b358ebd55cdaf4d28</id>
<content type='text'>
As the need to use the "--force-in-body-from" option primarily is
tied to which mailing list the mails go to (and get their From:
address mangled), it is likely that a user who needs to use this
option once to interact with their upstream project needs to use it
for all patches they send out.

Add a configuration variable, suitable for setting in the local
configuration file per repository, for this.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: allow forcing the use of in-body From: header</title>
<updated>2022-08-29T21:39:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-08-29T21:38:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=34bc1b1045af6ad813f4de662a453b3c77ba65a7'/>
<id>urn:sha1:34bc1b1045af6ad813f4de662a453b3c77ba65a7</id>
<content type='text'>
Users may be authoring and committing their commits under the same
e-mail address they use to send their patches from, in which case
they shouldn't need to use the in-body From: line in their outgoing
e-mails.  At the receiving end, "git am" will use the address on the
"From:" header of the incoming e-mail and all should be well.

Some mailing lists, however, mangle the From: address from what the
original sender had; in such a situation, the user may want to add
the in-body "From:" header even for their own patches.

"git format-patch --[no-]force-in-body-from" was invented for such
users.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: git-format-patch: describe the option --always</title>
<updated>2021-12-16T01:04:15Z</updated>
<author>
<name>徐沛文 (Aleen)</name>
<email>aleen42@vip.qq.com</email>
</author>
<published>2021-12-09T07:25:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=552038e26cfa2a1b5a7843567ca7ab39a573951f'/>
<id>urn:sha1:552038e26cfa2a1b5a7843567ca7ab39a573951f</id>
<content type='text'>
This commit has described how to use '--always' option in the command
'git-format-patch' to include patches for commits that emit no changes.

Signed-off-by: 徐沛文 (Aleen) &lt;aleen42@vip.qq.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch (doc): clarify --base=auto</title>
<updated>2021-10-23T21:33:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-23T21:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=203eb8381a3351ce4d92456f5f9a6d21ea1d2f6f'/>
<id>urn:sha1:203eb8381a3351ce4d92456f5f9a6d21ea1d2f6f</id>
<content type='text'>
What --base=auto tells format-patch is to compute the base commit
itself, using the tracking information.  It does not make anything
track anything.

Tighten the phrasing so that it won't be copied and pasted to other
places.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/doc-format-patch-skips-merges'</title>
<updated>2021-05-11T06:27:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-05-11T06:27:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=270f8bfe0038fe84f8a08bdc26f8b4094df10b08'/>
<id>urn:sha1:270f8bfe0038fe84f8a08bdc26f8b4094df10b08</id>
<content type='text'>
Document that "format-patch" skips merges.

* jk/doc-format-patch-skips-merges:
  docs/format-patch: mention handling of merges
</content>
</entry>
<entry>
<title>docs/format-patch: mention handling of merges</title>
<updated>2021-05-03T05:32:39Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2021-05-01T14:13:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e0601f568ebf512f2edc606bdbf1a508b3c28a6'/>
<id>urn:sha1:8e0601f568ebf512f2edc606bdbf1a508b3c28a6</id>
<content type='text'>
Format-patch doesn't have a way to format merges in a way that can be
applied by git-am (or any other tool), and so it just omits them.
However, this may be a surprising implication for users who are not well
versed in how the tool works. Let's add a note to the documentation
making this more clear.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'zh/format-patch-fractional-reroll-count'</title>
<updated>2021-04-02T21:43:14Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-04-02T21:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8a4394d1c12658b0dc6bd67d7bc6897def692851'/>
<id>urn:sha1:8a4394d1c12658b0dc6bd67d7bc6897def692851</id>
<content type='text'>
"git format-patch -v&lt;n&gt;" learned to allow a reroll count that is
not an integer.

* zh/format-patch-fractional-reroll-count:
  format-patch: allow a non-integral version numbers
</content>
</entry>
<entry>
<title>format-patch: give an overview of what a "patch" message is</title>
<updated>2021-03-24T19:14:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-03-24T17:35:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=28e29ee38b59c54d199c4ef42a77173e2090ccdb'/>
<id>urn:sha1:28e29ee38b59c54d199c4ef42a77173e2090ccdb</id>
<content type='text'>
The text says something called a "patch" is prepared one for each
commit, it is suitable for e-mail submission, and "am" is the
command to use it, but does not say what the "patch" really is.

The description in the page also refers to the "three-dash" line,
but it is unclear what it is, unless the reader is given a more
detailed overview of what the "patch" is.

Add a brief paragraph to give an overview of what the output looks
like.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: allow a non-integral version numbers</title>
<updated>2021-03-23T19:49:47Z</updated>
<author>
<name>ZheNing Hu</name>
<email>adlternative@gmail.com</email>
</author>
<published>2021-03-23T11:12:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=db91988aa102d48af1c1203d8cc2d01240df7365'/>
<id>urn:sha1:db91988aa102d48af1c1203d8cc2d01240df7365</id>
<content type='text'>
The `-v&lt;n&gt;` option of `format-patch` can give nothing but an
integral iteration number to patches in a series.  Some people,
however, prefer to mark a new iteration with only a small fixup
with a non integral iteration number (e.g. an "oops, that was
wrong" fix-up patch for v4 iteration may be labeled as "v4.1").

Allow `format-patch` to take such a non-integral iteration
number.

`&lt;n&gt;` can be any string, such as '3.1' or '4rev2'. In the case
where it is a non-integral value, the "Range-diff" and "Interdiff"
headers will not include the previous version.

Signed-off-by: ZheNing Hu &lt;adlternative@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/format-patch-name-max'</title>
<updated>2020-11-21T23:14:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-21T23:14:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=473c6224c6e46b68c4765d56628a85cea0ee9985'/>
<id>urn:sha1:473c6224c6e46b68c4765d56628a85cea0ee9985</id>
<content type='text'>
The maximum length of output filenames "git format-patch" creates
has become configurable (used to be capped at 64).

* jc/format-patch-name-max:
  format-patch: make output filename configurable
</content>
</entry>
</feed>
