6f1436ba2a
When these rules started being added in [1] they didn't use a ";" after the ")", and would thus catch uses of these macros within expressions. But as of [2] the new additions were broken in that they'd only match a subset of the users of these macros. Rather than narrowly fixing that, let's have these use the much less verbose pattern introduced in my recent [3]: There's no need to exhaustively enumerate arguments if we use the "..." syntax. This means that we can fold all of these different rules into one. 1.afd69dcc21
(object-store: prepare read_object_file to deal with any repo, 2018-11-13) 2.21a9651ba3
(commit-reach: prepare get_merge_bases to handle any repo, 2018-11-13) 3.0e6550a2c6
(cocci: add a index-compatibility.pending.cocci, 2022-11-19) Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
53 lines
855 B
Plaintext
53 lines
855 B
Plaintext
// This file is used for the ongoing refactoring of
|
|
// bringing the index or repository struct in all of
|
|
// our code base.
|
|
|
|
@@
|
|
@@
|
|
(
|
|
- read_object_file
|
|
+ repo_read_object_file
|
|
|
|
|
- has_object_file
|
|
+ repo_has_object_file
|
|
|
|
|
- has_object_file_with_flags
|
|
+ repo_has_object_file_with_flags
|
|
|
|
|
- parse_commit_internal
|
|
+ repo_parse_commit_internal
|
|
|
|
|
- parse_commit
|
|
+ repo_parse_commit
|
|
|
|
|
- get_merge_bases
|
|
+ repo_get_merge_bases
|
|
|
|
|
- get_merge_bases_many
|
|
+ repo_get_merge_bases_many
|
|
|
|
|
- get_merge_bases_many_dirty
|
|
+ repo_get_merge_bases_many_dirty
|
|
|
|
|
- in_merge_bases
|
|
+ repo_in_merge_bases
|
|
|
|
|
- in_merge_bases_many
|
|
+ repo_in_merge_bases_many
|
|
|
|
|
- get_commit_buffer
|
|
+ repo_get_commit_buffer
|
|
|
|
|
- unuse_commit_buffer
|
|
+ repo_unuse_commit_buffer
|
|
|
|
|
- logmsg_reencode
|
|
+ repo_logmsg_reencode
|
|
|
|
|
- format_commit_message
|
|
+ repo_format_commit_message
|
|
)
|
|
(
|
|
+ the_repository,
|
|
...)
|