<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-format-patch.txt, 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-01-23T19:37:29Z</updated>
<entry>
<title>doc: tidy asciidoc style</title>
<updated>2019-01-23T19:37:29Z</updated>
<author>
<name>Jean-Noël Avila</name>
<email>jn.avila@free.fr</email>
</author>
<published>2019-01-22T20:16:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ba170517be039a04b1914ebe9b492d4139c707df'/>
<id>urn:sha1:ba170517be039a04b1914ebe9b492d4139c707df</id>
<content type='text'>
This mainly refers to enforcing indentation on additional lines of
items of lists.

Signed-off-by: Jean-Noël Avila &lt;jn.avila@free.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: do not let its diff-options affect --range-diff</title>
<updated>2018-11-30T04:47:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-11-30T04:27:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d8981c3f885ceaddfec0e545b0f995b96e5ec58f'/>
<id>urn:sha1:d8981c3f885ceaddfec0e545b0f995b96e5ec58f</id>
<content type='text'>
Stop leaking how the primary output of format-patch is customized to
the range-diff machinery and instead let the latter use its own
"reasonable default", in order to correct the breakage introduced by
a5170794 ("Merge branch 'ab/range-diff-no-patch'", 2018-11-18) on
the 'master' front.  "git format-patch --range-diff..." without any
weird diff option started to include the "range-diff --stat" output,
which is rather useless right now, that made the whole thing
unusable and this is probably the least disruptive way to whip the
codebase into a shippable shape.

We may want to later make the range-diff driven by format-patch more
configurable, but that would have to wait until we have a good
design.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: allow --range-diff to apply to a lone-patch</title>
<updated>2018-08-14T21:27:05Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=40ce41604daf200cdc85abded0133d40faafc2f8'/>
<id>urn:sha1:40ce41604daf200cdc85abded0133d40faafc2f8</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 a range-diff, typically in the cover
letter. However, it is occasionally useful, despite making for a noisy
read, to insert a range-diff into the commentary section of the lone
patch of a 1-patch series.

Therefore, extend "git format-patch --range-diff=&lt;refspec&gt;" to insert a
range-diff into the commentary section of a lone patch rather than
requiring a cover letter.

Implementation note: Generating a range-diff 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 range-diff, 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: add --creation-factor tweak for --range-diff</title>
<updated>2018-08-14T21:27:05Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8631bf1cdd7296684deebab2708761bfc8085fc2'/>
<id>urn:sha1:8631bf1cdd7296684deebab2708761bfc8085fc2</id>
<content type='text'>
When generating a range-diff, matching up commits between two version of
a patch series involves heuristics, thus may give unexpected results.
git-range-diff allows tweaking the heuristic via --creation-factor.
Follow suit by accepting --creation-factor in combination with
--range-diff when generating a range-diff for a cover-letter.

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: extend --range-diff to accept revision range</title>
<updated>2018-08-14T21:27:04Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2e6fd71a52f5bde1c4036b8b0c586ae446f620f8'/>
<id>urn:sha1:2e6fd71a52f5bde1c4036b8b0c586ae446f620f8</id>
<content type='text'>
When submitting a revised a patch series, the --range-diff option embeds
a range-diff in the cover letter showing changes since the previous
version of the patch series. The argument to --range-diff is a simple
revision naming the tip of the previous series, which works fine if the
previous and current versions of the patch series share a common base.

However, it fails if the revision ranges of the old and new versions of
the series are disjoint. To address this shortcoming, extend
--range-diff to also accept an explicit revision range for the previous
series. For example:

    git format-patch --cover-letter --range-diff=v1~3..v1 -3 v2

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 --range-diff option to embed diff in cover letter</title>
<updated>2018-08-14T21:27:04Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31e2617a5f8fe1c114e72f058d1c035bbf77cffe'/>
<id>urn:sha1:31e2617a5f8fe1c114e72f058d1c035bbf77cffe</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 a range-diff, however, doing so involves manually
copy/pasting the diff into the cover letter.

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

    git format-patch --cover-letter --range-diff=v1 -3 v2

(At this stage, the previous attempt and the patch series being
formatted must share a common base, however, a subsequent enhancement
will make it possible to specify an explicit revision range for the
previous attempt.)

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: 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: 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>doc: convert \--option to --option</title>
<updated>2018-04-18T03:49:26Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2018-04-17T19:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e9f132f53dfe7dbb2a33aac0917144ccb9e2c9b'/>
<id>urn:sha1:9e9f132f53dfe7dbb2a33aac0917144ccb9e2c9b</id>
<content type='text'>
Rather than using a backslash in \--foo, with or without ''-quoting,
write `--foo` for better rendering. As explained in commit 1c262bb7b
(doc: convert \--option to --option, 2015-05-13), the backslash is not
needed for the versions of AsciiDoc that we support, but is rendered
literally by Asciidoctor.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
</content>
</entry>
<entry>
<title>format-patch: have progress option while generating patches</title>
<updated>2017-08-14T21:09:45Z</updated>
<author>
<name>Kevin Willford</name>
<email>kewillf@microsoft.com</email>
</author>
<published>2017-08-10T18:32:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=738e88a20cd4c73930a18c759ed6f5704e85109f'/>
<id>urn:sha1:738e88a20cd4c73930a18c759ed6f5704e85109f</id>
<content type='text'>
When generating patches for the rebase command, if the user does
not realize the branch they are rebasing onto is thousands of
commits different, there is no progress indication after initial
rewinding message.

The progress meter as presented in this patch assumes the thousands of
patches to have a fine granularity as well as assuming to require all
the same amount of work/time for each, such that a steady progress bar
is achieved.

We do not want to estimate the time for each patch based e.g.
on their size or number of touched files (or parents) as that is too
expensive for just a progress meter.

This patch allows a progress option to be passed to format-patch
so that the user can be informed the progress of generating the
patch.  This option is then used by the rebase command when
calling format-patch.

Signed-off-by: Kevin Willford &lt;kewillf@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
