<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff-merges.h, branch v2.32.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.32.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.32.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-04-17T06:38:35Z</updated>
<entry>
<title>diff-merges: introduce log.diffMerges config variable</title>
<updated>2021-04-17T06:38:35Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2021-04-13T11:41:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=17c13e60fd799336b28d320dcba06fe1ef06e01d'/>
<id>urn:sha1:17c13e60fd799336b28d320dcba06fe1ef06e01d</id>
<content type='text'>
New log.diffMerges configuration variable sets the format that
--diff-merges=on will be using. The default is "separate".

t4013: add the following tests for log.diffMerges config:

* Test that wrong values are denied.

* Test that the value of log.diffMerges properly affects both
--diff-merges=on and -m.

t9902: fix completion tests for log.d* to match log.diffMerges.

Added documentation for log.diffMerges.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: get rid of now empty diff_merges_init_revs()</title>
<updated>2020-12-21T21:47:31Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6e66af923d54f44bc7d0a404109e900a6a1cb60'/>
<id>urn:sha1:a6e66af923d54f44bc7d0a404109e900a6a1cb60</id>
<content type='text'>
After getting rid of 'ignore_merges' field, the diff_merges_init_revs()
function became empty. Get rid of it.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: new function diff_merges_set_dense_combined_if_unset()</title>
<updated>2020-12-21T21:47:31Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b6c17b5c0bd126e3c712f5de909a033d99f1e3a'/>
<id>urn:sha1:3b6c17b5c0bd126e3c712f5de909a033d99f1e3a</id>
<content type='text'>
Call it where given functionality is needed instead of direct
checking/tweaking of diff merges related fields.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: new function diff_merges_suppress()</title>
<updated>2020-12-21T21:47:31Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=09322b1da92fd32204c8b4b07cf12decccfe47f3'/>
<id>urn:sha1:09322b1da92fd32204c8b4b07cf12decccfe47f3</id>
<content type='text'>
This function sets all the relevant flags to disabled state, so that
no code that checks only one of them get it wrong.

Then we call this new function everywhere where diff merges output
suppression is needed.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: re-arrange functions to match the order they are called in</title>
<updated>2020-12-21T21:47:31Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=564a4fc8471b41fc05bda16e4bbb02a99b515cbf'/>
<id>urn:sha1:564a4fc8471b41fc05bda16e4bbb02a99b515cbf</id>
<content type='text'>
For clarity, define public functions in the order they are called, to
make logic inter-dependencies easier to grok.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: rename diff_merges_default_to_enable() to match semantics</title>
<updated>2020-12-21T21:47:31Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f54544d736e286538ebef0d3120c164f80f04c1'/>
<id>urn:sha1:4f54544d736e286538ebef0d3120c164f80f04c1</id>
<content type='text'>
Rename diff_merges_default_to_enable() to
diff_merges_default_to_first_parent() to match its semantics.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: move checks for first_parent_only out of the module</title>
<updated>2020-12-21T21:47:30Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7acf0d06f54043b3b79d5d388ed1c8fb66e2db5a'/>
<id>urn:sha1:7acf0d06f54043b3b79d5d388ed1c8fb66e2db5a</id>
<content type='text'>
The checks for first_parent_only don't in fact belong to this module,
as the primary purpose of this flag is history traversal limiting, so
get it out of this module and rename the

diff_merges_first_parent_defaults_to_enable()

to

diff_merges_default_to_enable()

to match new semantics.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff-merges: rename all functions to have common prefix</title>
<updated>2020-12-21T21:47:30Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=18f09473bf8685a1f8db254cff915d4c31e86406'/>
<id>urn:sha1:18f09473bf8685a1f8db254cff915d4c31e86406</id>
<content type='text'>
Use the same "diff_merges" prefix for all the diff merges function
names.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>revision: move diff merges functions to its own diff-merges.c</title>
<updated>2020-12-21T21:47:30Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2020-12-21T15:19:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a37eec6333db6f38edd21e74812d6c5f215b6e6c'/>
<id>urn:sha1:a37eec6333db6f38edd21e74812d6c5f215b6e6c</id>
<content type='text'>
Create separate diff-merges.c and diff-merges.h files, and move all
the code related to handling of diff merges there.

Signed-off-by: Sergey Organov &lt;sorganov@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
