21a9651ba3
Similarly to previous patches, the get_merge_base functions are used often in the code base, which makes migrating them hard. Implement the new functions, prefixed with 'repo_' and hide the old functions behind a wrapper macro. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
93 lines
1.3 KiB
Plaintext
93 lines
1.3 KiB
Plaintext
// This file is used for the ongoing refactoring of
|
|
// bringing the index or repository struct in all of
|
|
// our code base.
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
expression G;
|
|
@@
|
|
- read_object_file(
|
|
+ repo_read_object_file(the_repository,
|
|
E, F, G)
|
|
|
|
@@
|
|
expression E;
|
|
@@
|
|
- has_sha1_file(
|
|
+ repo_has_sha1_file(the_repository,
|
|
E)
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
@@
|
|
- has_sha1_file_with_flags(
|
|
+ repo_has_sha1_file_with_flags(the_repository,
|
|
E)
|
|
|
|
@@
|
|
expression E;
|
|
@@
|
|
- has_object_file(
|
|
+ repo_has_object_file(the_repository,
|
|
E)
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
@@
|
|
- has_object_file_with_flags(
|
|
+ repo_has_object_file_with_flags(the_repository,
|
|
E)
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
expression G;
|
|
@@
|
|
- parse_commit_internal(
|
|
+ repo_parse_commit_internal(the_repository,
|
|
E, F, G)
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
@@
|
|
- parse_commit_gently(
|
|
+ repo_parse_commit_gently(the_repository,
|
|
E, F)
|
|
|
|
@@
|
|
expression E;
|
|
@@
|
|
- parse_commit(
|
|
+ repo_parse_commit(the_repository,
|
|
E)
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
@@
|
|
- get_merge_bases(
|
|
+ repo_get_merge_bases(the_repository,
|
|
E, F);
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
expression G;
|
|
@@
|
|
- get_merge_bases_many(
|
|
+ repo_get_merge_bases_many(the_repository,
|
|
E, F, G);
|
|
|
|
@@
|
|
expression E;
|
|
expression F;
|
|
expression G;
|
|
@@
|
|
- get_merge_bases_many_dirty(
|
|
+ repo_get_merge_bases_many_dirty(the_repository,
|
|
E, F, G);
|