diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-05-07 09:11:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-05-07 19:06:59 +0200 |
commit | b198ee0b3d4f4471241d31863e7902ecf24955f7 (patch) | |
tree | ef2a0b20daf6cf88da3ba918320a0ea636536529 /midx-write.c | |
parent | refs: add `exclude_patterns` parameter to `for_each_fullref_in()` (diff) | |
download | git-b198ee0b3d4f4471241d31863e7902ecf24955f7.tar.xz git-b198ee0b3d4f4471241d31863e7902ecf24955f7.zip |
cocci: introduce rules to transform "refs" to pass ref store
Most of the functions in "refs.h" have two flavors: one that accepts a
`struct ref_store`, and one that figures it out via `the_repository`.
As part of the libification efforts we want to get rid of the latter
variant and stop relying on `the_repository` altogether.
Introduce a set of Coccinelle rules that transform callers of the "refs"
interfaces to pass a `struct ref_store`. These rules are not yet applied
by this patch so that it can be reviewed standalone more easily. This
will be done in the next patch.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx-write.c')
0 files changed, 0 insertions, 0 deletions