<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-format-patch.txt, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-12-16T01:04:15Z</updated>
<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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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='http://git.kilabit.info/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>
<entry>
<title>format-patch: make output filename configurable</title>
<updated>2020-11-10T01:44:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-06T21:56:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3baf58bfb4bcfe201970abeffa8e1396d2324250'/>
<id>urn:sha1:3baf58bfb4bcfe201970abeffa8e1396d2324250</id>
<content type='text'>
For the past 15 years, we've used the hardcoded 64 as the length
limit of the filename of the output from the "git format-patch"
command.  Since the value is shorter than the 80-column terminal, it
could grow without line wrapping a bit.  At the same time, since the
value is longer than half of the 80-column terminal, we could fit
two or more of them in "ls" output on such a terminal if we allowed
to lower it.

Introduce a new command line option --filename-max-length=&lt;n&gt; and a
new configuration variable format.filenameMaxLength to override the
hardcoded default.

While we are at it, remove a check that the name of output directory
does not exceed PATH_MAX---this check is pointless in that by the
time control reaches the function, the caller would already have
done an equivalent of "mkdir -p", so if the system does not like an
overly long directory name, the control wouldn't have reached here,
and otherwise, we know that the system allowed the output directory
to exist.  In the worst case, we will get an error when we try to
open the output file and handle the error correctly anyway.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: stylistically normalize references to Signed-off-by:</title>
<updated>2020-10-20T18:57:40Z</updated>
<author>
<name>Bradley M. Kuhn</name>
<email>bkuhn@sfconservancy.org</email>
</author>
<published>2020-10-20T01:03:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3abd4a67d912e0c0980aa34def6ea55ebde84947'/>
<id>urn:sha1:3abd4a67d912e0c0980aa34def6ea55ebde84947</id>
<content type='text'>
Ted reported an old typo in the git-commit.txt and merge-options.txt.
Namely, the phrase "Signed-off-by line" was used without either a
definite nor indefinite article.

Upon examination, it seems that the documentation (including items in
Documentation/, but also option help strings) have been quite
inconsistent on usage when referring to `Signed-off-by`.

First, very few places used a definite or indefinite article with the
phrase "Signed-off-by line", but that was the initial typo that led
to this investigation.  So, normalize using either an indefinite or
definite article consistently.

The original phrasing, in Commit 3f971fc425b (Documentation updates,
2005-08-14), is "Add Signed-off-by line".  Commit 6f855371a53 (Add
--signoff, --check, and long option-names. 2005-12-09) switched to
using "Add `Signed-off-by:` line", but didn't normalize the former
commit to match.  Later commits seem to have cut and pasted from one
or the other, which is likely how the usage became so inconsistent.

Junio stated on the git mailing list in
&lt;xmqqy2k1dfoh.fsf@gitster.c.googlers.com&gt; a preference to leave off
the colon.  Thus, prefer `Signed-off-by` (with backticks) for the
documentation files and Signed-off-by (without backticks) for option
help strings.

Additionally, Junio argued that "trailer" is now the standard term to
refer to `Signed-off-by`, saying that "becomes plenty clear that we
are not talking about any random line in the log message".  As such,
prefer "trailer" over "line" anywhere the former word fits.

However, leave alone those few places in documentation that use
Signed-off-by to refer to the process (rather than the specific
trailer), or in places where mail headers are generally discussed in
comparison with Signed-off-by.

Reported-by: "Theodore Y. Ts'o" &lt;tytso@mit.edu&gt;
Signed-off-by: Bradley M. Kuhn &lt;bkuhn@sfconservancy.org&gt;
Acked-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
