cocci: remove obsolete the_repository rules

035c7de9e9e (cocci: apply the "revision.h" part of "the_repository.pending", 2023-03-28) removed the last of the repo-less functions and macros mentioned in the_repository.cocci at the time. No stragglers appeared since then. Remove the applied rules now that they have outlived their usefulness. Also add a reminder to eventually remove the just added rules for tree.h. Suggested-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Jan 15, 2026 at 23:01 UTC 4eb105c11970747e8b78bd0275ff9ae431d58d1d
1 file changed +2 -117
contrib/coccinelle/the_repository.cocci
+2 -117
@@ -2,123 +2,8 @@
2 @@
3 @@
4 (
5 -// cache.h
6 -- get_oid
7 -+ repo_get_oid
8 -|
9 -- get_oid_commit
10 -+ repo_get_oid_commit
11 -|
12 -- get_oid_committish
13 -+ repo_get_oid_committish
14 -|
15 -- get_oid_tree
16 -+ repo_get_oid_tree
17 -|
18 -- get_oid_treeish
19 -+ repo_get_oid_treeish
20 -|
21 -- get_oid_blob
22 -+ repo_get_oid_blob
23 -|
24 -- get_oid_mb
25 -+ repo_get_oid_mb
26 -|
27 -- find_unique_abbrev
28 -+ repo_find_unique_abbrev
29 -|
30 -- find_unique_abbrev_r
31 -+ repo_find_unique_abbrev_r
32 -|
33 -- for_each_abbrev
34 -+ repo_for_each_abbrev
35 -|
36 -- interpret_branch_name
37 -+ repo_interpret_branch_name
38 -|
39 -- peel_to_type
40 -+ repo_peel_to_type
41 -// commit-reach.h
42 -|
43 -- get_merge_bases
44 -+ repo_get_merge_bases
45 -|
46 -- get_merge_bases_many
47 -+ repo_get_merge_bases_many
48 -|
49 -- get_merge_bases_many_dirty
50 -+ repo_get_merge_bases_many_dirty
51 -|
52 -- in_merge_bases
53 -+ repo_in_merge_bases
54 -|
55 -- in_merge_bases_many
56 -+ repo_in_merge_bases_many
57 -// commit.h
58 -|
59 -- parse_commit_internal
60 -+ repo_parse_commit_internal
61 -|
62 -- parse_commit
63 -+ repo_parse_commit
64 -|
65 -- get_commit_buffer
66 -+ repo_get_commit_buffer
67 -|
68 -- unuse_commit_buffer
69 -+ repo_unuse_commit_buffer
70 -|
71 -- logmsg_reencode
72 -+ repo_logmsg_reencode
73 -|
74 -- get_commit_tree
75 -+ repo_get_commit_tree
76 -// diff.h
77 -|
78 -- diff_setup
79 -+ repo_diff_setup
80 -// odb.h
81 -|
82 -- read_object_file
83 -+ repo_read_object_file
84 -|
85 -- has_object_file
86 -+ repo_has_object_file
87 -|
88 -- has_object_file_with_flags
89 -+ repo_has_object_file_with_flags
90 -// pretty.h
91 -|
92 -- format_commit_message
93 -+ repo_format_commit_message
94 -// packfile.h
95 -|
96 -- approximate_object_count
97 -+ repo_approximate_object_count
98 -// promisor-remote.h
99 -|
100 -- promisor_remote_reinit
101 -+ repo_promisor_remote_reinit
102 -|
103 -- promisor_remote_find
104 -+ repo_promisor_remote_find
105 -|
106 -- has_promisor_remote
107 -+ repo_has_promisor_remote
108 -// refs.h
109 -|
110 -- dwim_ref
111 -+ repo_dwim_ref
112 -// rerere.h
113 -|
114 -- rerere
115 -+ repo_rerere
116 -// revision.h
117 -|
118 -- init_revisions
119 -+ repo_init_revisions
120 -// tree.h
121 -|
5 +// TODO: remove the rules below and the macros from tree.h after the
6 +// next Git release.
7 - parse_tree
8 + repo_parse_tree
9 |