<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff-merges.h, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-09-07T18:11:35Z</updated>
<entry>
<title>diff-index: restore -c/--cc options handling</title>
<updated>2021-09-07T18:11:35Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2021-09-01T16:52:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5acffd34738f9718caf2a5811bddbf2f40e968a0'/>
<id>urn:sha1:5acffd34738f9718caf2a5811bddbf2f40e968a0</id>
<content type='text'>
This fixes 19b2517f (diff-merges: move specific diff-index "-m"
handling to diff-index, 2021-05-21).

That commit disabled handling of all diff for merges options in
diff-index on an assumption that they are unused. However, it later
appeared that -c and --cc, even though undocumented and not being
covered by tests, happen to have had particular effect on diff-index
output.

Restore original -c/--cc options handling by diff-index.

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 specific diff-index "-m" handling to diff-index</title>
<updated>2021-05-21T00:24:14Z</updated>
<author>
<name>Sergey Organov</name>
<email>sorganov@gmail.com</email>
</author>
<published>2021-05-20T21:46:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=19b2517f95a0a908a8ada7417cf0717299e7e1aa'/>
<id>urn:sha1:19b2517f95a0a908a8ada7417cf0717299e7e1aa</id>
<content type='text'>
Move specific handling of "-m" for diff-index to diff-index.c, so
diff-merges is left to handle only diff for merges options.

Being a better design by itself, this is especially essential in
preparation for letting -m imply -p, as "diff-index -m" obviously
should not imply -p, as it's entirely unrelated.

To handle this, in addition to moving specific diff-index "-m" code
out of diff-merges, we introduce new

  diff_merges_suppress_options_parsing()

and call it before generic options processing in cmd_diff_index().

This new diff_merges_suppress_options_parsing() could then be reused
and called before invocations of setup_revisions() for other commands
that don't need --diff-merges options, but that's outside of the scope
of these patch series.

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: 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>
</feed>
