Git 2.47
[git.git] / contrib / coccinelle / refs.cocci
blob31d9cad8f38d576c8adf422a91ee2a60b40bdc0d
1 // Migrate "refs.h" to not rely on `the_repository` implicitly anymore.
2 @@
3 @@
5 - resolve_ref_unsafe
6 + refs_resolve_ref_unsafe
8 - resolve_refdup
9 + refs_resolve_refdup
11 - read_ref_full
12 + refs_read_ref_full
14 - read_ref
15 + refs_read_ref
17 - ref_exists
18 + refs_ref_exists
20 - head_ref
21 + refs_head_ref
23 - for_each_ref
24 + refs_for_each_ref
26 - for_each_ref_in
27 + refs_for_each_ref_in
29 - for_each_fullref_in
30 + refs_for_each_fullref_in
32 - for_each_tag_ref
33 + refs_for_each_tag_ref
35 - for_each_branch_ref
36 + refs_for_each_branch_ref
38 - for_each_remote_ref
39 + refs_for_each_remote_ref
41 - for_each_glob_ref
42 + refs_for_each_glob_ref
44 - for_each_glob_ref_in
45 + refs_for_each_glob_ref_in
47 - head_ref_namespaced
48 + refs_head_ref_namespaced
50 - for_each_namespaced_ref
51 + refs_for_each_namespaced_ref
53 - for_each_rawref
54 + refs_for_each_rawref
56 - safe_create_reflog
57 + refs_create_reflog
59 - reflog_exists
60 + refs_reflog_exists
62 - delete_ref
63 + refs_delete_ref
65 - delete_refs
66 + refs_delete_refs
68 - delete_reflog
69 + refs_delete_reflog
71 - for_each_reflog_ent
72 + refs_for_each_reflog_ent
74 - for_each_reflog_ent_reverse
75 + refs_for_each_reflog_ent_reverse
77 - for_each_reflog
78 + refs_for_each_reflog
80 - shorten_unambiguous_ref
81 + refs_shorten_unambiguous_ref
83 - rename_ref
84 + refs_rename_ref
86 - copy_existing_ref
87 + refs_copy_existing_ref
89 - create_symref
90 + refs_create_symref
92 - ref_transaction_begin
93 + ref_store_transaction_begin
95 - update_ref
96 + refs_update_ref
98 - reflog_expire
99 + refs_reflog_expire
101   (
102 + get_main_ref_store(the_repository),
103   ...)