<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/interdiff.c, branch main</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2020-09-08T22:03:26Z</updated>
<entry>
<title>diff: move show_interdiff() from its own file to diff-lib</title>
<updated>2020-09-08T22:03:26Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2020-09-08T07:16:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=cdffbdc217aba8a39d786a642d1376a5a605adec'/>
<id>urn:sha1:cdffbdc217aba8a39d786a642d1376a5a605adec</id>
<content type='text'>
show_interdiff() is a relatively small function and not likely to grow
larger or more complicated. Rather than dedicating an entire source file
to it, relocate it to diff-lib.c which houses other "take two things and
compare them" functions meant to be re-used but not so low-level as to
reside in the core diff implementation.

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>interdiff: teach show_interdiff() to indent interdiff</title>
<updated>2018-07-23T19:50:06Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-22T09:57:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=3b026417eaa1f32f53b85d1b131194ae1cbbf068'/>
<id>urn:sha1:3b026417eaa1f32f53b85d1b131194ae1cbbf068</id>
<content type='text'>
A future change will allow "git format-patch --interdiff=&lt;prev&gt; -1" to
insert an interdiff into the commentary section of the lone patch of a
1-patch series. However, to prevent the inserted interdiff from
confusing git-am, as well as human readers, it needs to be indented.
Therefore, teach show_interdiff() how to indent.

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='http://git.kilabit.info/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>
</feed>
