<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib, branch v2.40.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.40.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.40.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2023-02-10T19:38:40Z</updated>
<entry>
<title>cocci &amp; cache.h: remove "USE_THE_INDEX_COMPATIBILITY_MACROS"</title>
<updated>2023-02-10T19:38:40Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-10T10:28:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dfd0a89374c6eba332dfa3f5670a29eaf96efa3b'/>
<id>urn:sha1:dfd0a89374c6eba332dfa3f5670a29eaf96efa3b</id>
<content type='text'>
Have the last users of "USE_THE_INDEX_COMPATIBILITY_MACROS" use the
underlying *_index() variants instead. Now all previous users of
"USE_THE_INDEX_COMPATIBILITY_MACROS" have been migrated away from the
wrapper macros, and if applicable to use the "USE_THE_INDEX_VARIABLE"
added in [1].

Let's leave the "index-compatibility.cocci" in place, even though it
won't be doing anything on "master". It will benefit any out-of-tree
code that need to use these compatibility macros. We can eventually
remove it.

1. bdafeae0b9c (cache.h &amp; test-tool.h: add &amp; use
   "USE_THE_INDEX_VARIABLE", 2022-11-19)

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cache-tree API: remove redundant update_main_cache_tree()</title>
<updated>2023-02-10T19:38:14Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-10T10:28:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fcb864bce70573380e6409c4ca25d1bdf16b0841'/>
<id>urn:sha1:fcb864bce70573380e6409c4ca25d1bdf16b0841</id>
<content type='text'>
Remove the redundant update_main_cache_tree() function, and make its
users use cache_tree_update() instead.

The behavior of populating the "the_index.cache_tree" if it wasn't
present already was needed when this function was introduced in [1],
but it hasn't been needed since [2]; The "cache_tree_update()" will
now lazy-allocate, so there's no need for the wrapper.

1. 996277c5206 (Refactor cache_tree_update idiom from commit,
   2011-12-06)
2. fb0882648e0 (cache-tree: clean up cache_tree_update(), 2021-01-23)

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cocci &amp; cache-tree.h: migrate "write_cache_as_tree" to "*_index_*"</title>
<updated>2023-02-10T19:37:49Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-10T10:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=99370863e20131627f0ea0481b7006d0d2125c93'/>
<id>urn:sha1:99370863e20131627f0ea0481b7006d0d2125c93</id>
<content type='text'>
Add a trivial rule for "write_cache_as_tree" to
"index-compatibility.cocci", and apply it. This was left out of the
rules added in 0e6550a2c63 (cocci: add a
index-compatibility.pending.cocci, 2022-11-19) because this
compatibility wrapper lived in "cache-tree.h", not "cache.h"

But it's like the other "USE_THE_INDEX_COMPATIBILITY_MACROS", so let's
migrate it too.

The replacement of "USE_THE_INDEX_COMPATIBILITY_MACROS" here with
"USE_THE_INDEX_VARIABLE" is a manual change on top, now that these
files only use "&amp;the_index", and don't need any compatibility
macros (or functions).

The wrapping of some argument lists is likewise manual, as coccinelle
would otherwise give us overly long argument lists.

The reason for putting the "O" in the cocci rule on the "-" and "+"
lines is because I couldn't get correct whitespacing otherwise,
i.e. I'd end up with "oid,&amp;the_index", not "oid, &amp;the_index".

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cocci &amp; cache.h: apply pending "index_cache_pos" rule</title>
<updated>2023-02-10T19:37:27Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-10T10:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=babed893f52a44771dd9d85329ee3bd64438adfb'/>
<id>urn:sha1:babed893f52a44771dd9d85329ee3bd64438adfb</id>
<content type='text'>
Apply the rule added in [1] to change "cache_name_pos" to
"index_name_pos", which allows us to get rid of another
"USE_THE_INDEX_COMPATIBILITY_MACROS" macro.

The replacement of "USE_THE_INDEX_COMPATIBILITY_MACROS" here with
"USE_THE_INDEX_VARIABLE" is a manual change on top, now that these
files only use "&amp;the_index", and don't need any compatibility
macros (or functions).

1. 0e6550a2c63 (cocci: add a index-compatibility.pending.cocci,
   2022-11-19)

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cocci &amp; cache.h: fully apply "active_nr" part of index-compatibility</title>
<updated>2023-02-10T19:31:18Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2023-02-10T10:28:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cec13b9514868cf38b41330bbc3ea91a7961dd00'/>
<id>urn:sha1:cec13b9514868cf38b41330bbc3ea91a7961dd00</id>
<content type='text'>
Apply the "active_nr" part of "index-compatibility.pending.cocci",
which was left out in [1] due to an in-flight conflict. As of [2] the
topic we conflicted with has been merged to "master", so we can fully
apply this rule.

1. dc594180d9e (cocci &amp; cache.h: apply variable section of "pending"
   index-compatibility, 2022-11-19)
2. 9ea1378d046 (Merge branch 'ab/various-leak-fixes', 2022-12-14)

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use DUP_ARRAY</title>
<updated>2023-01-09T04:28:36Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2023-01-01T21:16:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e578410960d9ceb35ec98ad4b6fc711f1a9c85c'/>
<id>urn:sha1:6e578410960d9ceb35ec98ad4b6fc711f1a9c85c</id>
<content type='text'>
Add a semantic patch for replace ALLOC_ARRAY+COPY_ARRAY with DUP_ARRAY
to reduce code duplication and apply its results.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'aw/complete-case-insensitive'</title>
<updated>2022-12-19T02:46:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-12-19T02:46:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=053650ddad68e376ca8bedffa9eb5a64ee6f8837'/>
<id>urn:sha1:053650ddad68e376ca8bedffa9eb5a64ee6f8837</id>
<content type='text'>
Introduce a case insensitive mode to the Bash completion helpers.

* aw/complete-case-insensitive:
  completion: add case-insensitive match of pseudorefs
  completion: add optional ignore-case when matching refs
</content>
</entry>
<entry>
<title>Merge branch 'yn/git-jump-emacs'</title>
<updated>2022-12-14T06:55:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-12-14T06:55:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06ae40f6e5f4a216b336088f1f513fbfb75e8b98'/>
<id>urn:sha1:06ae40f6e5f4a216b336088f1f513fbfb75e8b98</id>
<content type='text'>
"git jump" (in contrib/) learned to present the "quickfix list" to
its standard output (instead of letting it consumed by the editor
it invokes), and learned to also drive emacs/emacsclient.

* yn/git-jump-emacs:
  git-jump: invoke emacs/emacsclient
  git-jump: move valid-mode check earlier
  git-jump: add an optional argument '--stdout'
</content>
</entry>
<entry>
<title>Merge branch 'ab/fewer-the-index-macros'</title>
<updated>2022-12-01T09:38:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2022-12-01T09:38:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=805265fcf7a737664a8321aaf4a0587b78435184'/>
<id>urn:sha1:805265fcf7a737664a8321aaf4a0587b78435184</id>
<content type='text'>
Squelch warnings from Coccinelle

* ab/fewer-the-index-macros:
  cocci: avoid "should ... be a metavariable" warnings
</content>
</entry>
<entry>
<title>cocci: avoid "should ... be a metavariable" warnings</title>
<updated>2022-11-30T22:25:57Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2022-11-30T08:28:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cddd68ae33667c4bfc81c81f74815bb2ba0e4f3a'/>
<id>urn:sha1:cddd68ae33667c4bfc81c81f74815bb2ba0e4f3a</id>
<content type='text'>
Since [1] running "make coccicheck" has resulted in [2] being emitted
to the *.log files for the "spatch" run, and in the case of "make
coccicheck-test" we'd emit these to the user's terminal.

Nothing was broken as a result, but let's refactor the relevant rules
to eliminate the ambiguity between a possible variable and an
identifier.

1. 0e6550a2c63 (cocci: add a index-compatibility.pending.cocci,
   2022-11-19)
2. warning: line 257: should active_cache be a metavariable?
   warning: line 260: should active_cache_changed be a metavariable?
   warning: line 263: should active_cache_tree be a metavariable?
   warning: line 271: should active_nr be a metavariable?

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
