Browse Source
Code clean-up around the use of the_repository. * ab/remove-implicit-use-of-the-repository: libs: use "struct repository *" argument, not "the_repository" post-cocci: adjust comments for recent repo_* migration cocci: apply the "revision.h" part of "the_repository.pending" cocci: apply the "rerere.h" part of "the_repository.pending" cocci: apply the "refs.h" part of "the_repository.pending" cocci: apply the "promisor-remote.h" part of "the_repository.pending" cocci: apply the "packfile.h" part of "the_repository.pending" cocci: apply the "pretty.h" part of "the_repository.pending" cocci: apply the "object-store.h" part of "the_repository.pending" cocci: apply the "diff.h" part of "the_repository.pending" cocci: apply the "commit.h" part of "the_repository.pending" cocci: apply the "commit-reach.h" part of "the_repository.pending" cocci: apply the "cache.h" part of "the_repository.pending" cocci: add missing "the_repository" macros to "pending" cocci: sort "the_repository" rules by header cocci: fix incorrect & verbose "the_repository" rules cocci: remove dead rule from "the_repository.pending.cocci"main
Junio C Hamano
2 years ago
148 changed files with 958 additions and 873 deletions
@ -0,0 +1,123 @@ |
|||||||
|
// Fully migrated "the_repository" additions |
||||||
|
@@ |
||||||
|
@@ |
||||||
|
( |
||||||
|
// cache.h |
||||||
|
- get_oid |
||||||
|
+ repo_get_oid |
||||||
|
| |
||||||
|
- get_oid_commit |
||||||
|
+ repo_get_oid_commit |
||||||
|
| |
||||||
|
- get_oid_committish |
||||||
|
+ repo_get_oid_committish |
||||||
|
| |
||||||
|
- get_oid_tree |
||||||
|
+ repo_get_oid_tree |
||||||
|
| |
||||||
|
- get_oid_treeish |
||||||
|
+ repo_get_oid_treeish |
||||||
|
| |
||||||
|
- get_oid_blob |
||||||
|
+ repo_get_oid_blob |
||||||
|
| |
||||||
|
- get_oid_mb |
||||||
|
+ repo_get_oid_mb |
||||||
|
| |
||||||
|
- find_unique_abbrev |
||||||
|
+ repo_find_unique_abbrev |
||||||
|
| |
||||||
|
- find_unique_abbrev_r |
||||||
|
+ repo_find_unique_abbrev_r |
||||||
|
| |
||||||
|
- for_each_abbrev |
||||||
|
+ repo_for_each_abbrev |
||||||
|
| |
||||||
|
- interpret_branch_name |
||||||
|
+ repo_interpret_branch_name |
||||||
|
| |
||||||
|
- peel_to_type |
||||||
|
+ repo_peel_to_type |
||||||
|
// commit-reach.h |
||||||
|
| |
||||||
|
- 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 |
||||||
|
// commit.h |
||||||
|
| |
||||||
|
- parse_commit_internal |
||||||
|
+ repo_parse_commit_internal |
||||||
|
| |
||||||
|
- parse_commit |
||||||
|
+ repo_parse_commit |
||||||
|
| |
||||||
|
- get_commit_buffer |
||||||
|
+ repo_get_commit_buffer |
||||||
|
| |
||||||
|
- unuse_commit_buffer |
||||||
|
+ repo_unuse_commit_buffer |
||||||
|
| |
||||||
|
- logmsg_reencode |
||||||
|
+ repo_logmsg_reencode |
||||||
|
| |
||||||
|
- get_commit_tree |
||||||
|
+ repo_get_commit_tree |
||||||
|
// diff.h |
||||||
|
| |
||||||
|
- diff_setup |
||||||
|
+ repo_diff_setup |
||||||
|
// 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 |
||||||
|
| |
||||||
|
- format_commit_message |
||||||
|
+ repo_format_commit_message |
||||||
|
// 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 |
||||||
|
) |
||||||
|
( |
||||||
|
+ the_repository, |
||||||
|
...) |
@ -1,128 +0,0 @@ |
|||||||
// 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_object_file( |
|
||||||
+ repo_has_object_file(the_repository, |
|
||||||
E) |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
@@ |
|
||||||
- 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); |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
expression F; |
|
||||||
@@ |
|
||||||
- in_merge_bases( |
|
||||||
+ repo_in_merge_bases(the_repository, |
|
||||||
E, F); |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
expression F; |
|
||||||
expression G; |
|
||||||
@@ |
|
||||||
- in_merge_bases_many( |
|
||||||
+ repo_in_merge_bases_many(the_repository, |
|
||||||
E, F, G); |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
expression F; |
|
||||||
@@ |
|
||||||
- get_commit_buffer( |
|
||||||
+ repo_get_commit_buffer(the_repository, |
|
||||||
E, F); |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
expression F; |
|
||||||
@@ |
|
||||||
- unuse_commit_buffer( |
|
||||||
+ repo_unuse_commit_buffer(the_repository, |
|
||||||
E, F); |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
expression F; |
|
||||||
expression G; |
|
||||||
@@ |
|
||||||
- logmsg_reencode( |
|
||||||
+ repo_logmsg_reencode(the_repository, |
|
||||||
E, F, G); |
|
||||||
|
|
||||||
@@ |
|
||||||
expression E; |
|
||||||
expression F; |
|
||||||
expression G; |
|
||||||
expression H; |
|
||||||
@@ |
|
||||||
- format_commit_message( |
|
||||||
+ repo_format_commit_message(the_repository, |
|
||||||
E, F, G, H); |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue