2018-11-14 01:12:47 +01:00
|
|
|
// This file is used for the ongoing refactoring of
|
|
|
|
// bringing the index or repository struct in all of
|
|
|
|
// our code base.
|
|
|
|
|
|
|
|
@@
|
|
|
|
@@
|
2023-03-28 15:58:43 +02:00
|
|
|
(
|
2023-03-28 15:58:44 +02:00
|
|
|
// commit-reach.h
|
2023-03-28 15:58:43 +02:00
|
|
|
- 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
|
2023-03-28 15:58:44 +02:00
|
|
|
// commit.h
|
|
|
|
|
|
|
|
|
- parse_commit_internal
|
|
|
|
+ repo_parse_commit_internal
|
|
|
|
|
|
|
|
|
- parse_commit
|
|
|
|
+ repo_parse_commit
|
2023-03-28 15:58:43 +02:00
|
|
|
|
|
|
|
|
- get_commit_buffer
|
|
|
|
+ repo_get_commit_buffer
|
|
|
|
|
|
|
|
|
- unuse_commit_buffer
|
|
|
|
+ repo_unuse_commit_buffer
|
|
|
|
|
|
|
|
|
- logmsg_reencode
|
|
|
|
+ repo_logmsg_reencode
|
cocci: add missing "the_repository" macros to "pending"
In the case of diff.h, rerere.h and revision.h the macros were added
in [1], [2] and [3] when "the_repository.pending.cocci" didn't
exist. None of the subsequently added migration rules covered
them. Let's add those missing rules.
In the case of macros in "cache.h", "commit.h", "packfile.h",
"promisor-remote.h" and "refs.h" those aren't guarded by
"NO_THE_REPOSITORY_COMPATIBILITY_MACROS", but they're also macros that
add "the_repository" as the first argument, so we should migrate away
from them.
1. 2abf3503854 (revision.c: remove implicit dependency on the_index,
2018-09-21)
2. e6757652350 (diff.c: remove implicit dependency on the_index,
2018-09-21)
3. 35843b1123e (rerere.c: remove implicit dependency on the_index,
2018-09-21)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-03-28 15:58:45 +02:00
|
|
|
|
|
|
|
|
- get_commit_tree
|
|
|
|
+ repo_get_commit_tree
|
|
|
|
// diff.h
|
|
|
|
|
|
|
|
|
- diff_setup
|
|
|
|
+ repo_diff_setup
|
2023-03-28 15:58:44 +02:00
|
|
|
// object-store.h
|
|
|
|
|
|
|
|
|
- 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
|
|
|
|
// pretty.h
|
2023-03-28 15:58:43 +02:00
|
|
|
|
|
|
|
|
- format_commit_message
|
|
|
|
+ repo_format_commit_message
|
cocci: add missing "the_repository" macros to "pending"
In the case of diff.h, rerere.h and revision.h the macros were added
in [1], [2] and [3] when "the_repository.pending.cocci" didn't
exist. None of the subsequently added migration rules covered
them. Let's add those missing rules.
In the case of macros in "cache.h", "commit.h", "packfile.h",
"promisor-remote.h" and "refs.h" those aren't guarded by
"NO_THE_REPOSITORY_COMPATIBILITY_MACROS", but they're also macros that
add "the_repository" as the first argument, so we should migrate away
from them.
1. 2abf3503854 (revision.c: remove implicit dependency on the_index,
2018-09-21)
2. e6757652350 (diff.c: remove implicit dependency on the_index,
2018-09-21)
3. 35843b1123e (rerere.c: remove implicit dependency on the_index,
2018-09-21)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-03-28 15:58:45 +02:00
|
|
|
// packfile.h
|
|
|
|
|
|
|
|
|
- approximate_object_count
|
|
|
|
+ repo_approximate_object_count
|
|
|
|
// promisor-remote.h
|
|
|
|
|
|
|
|
|
- promisor_remote_reinit
|
|
|
|
+ repo_promisor_remote_reinit
|
|
|
|
|
|
|
|
|
- promisor_remote_find
|
|
|
|
+ repo_promisor_remote_find
|
|
|
|
|
|
|
|
|
- has_promisor_remote
|
|
|
|
+ repo_has_promisor_remote
|
|
|
|
// refs.h
|
|
|
|
|
|
|
|
|
- dwim_ref
|
|
|
|
+ repo_dwim_ref
|
|
|
|
// rerere.h
|
|
|
|
|
|
|
|
|
- rerere
|
|
|
|
+ repo_rerere
|
|
|
|
// revision.h
|
|
|
|
|
|
|
|
|
- init_revisions
|
|
|
|
+ repo_init_revisions
|
2023-03-28 15:58:43 +02:00
|
|
|
)
|
|
|
|
(
|
|
|
|
+ the_repository,
|
|
|
|
...)
|