diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2021-10-08 23:08:15 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-09 00:06:05 +0200 |
commit | 9bc45a28026eaea42011e8c1884aa2d9dc30f947 (patch) | |
tree | 96ebd3f3bfb706e4d534bbf0de7f9223fddf32f3 /refs/refs-internal.h | |
parent | refs: plumb repo into ref stores (diff) | |
download | git-9bc45a28026eaea42011e8c1884aa2d9dc30f947.tar.xz git-9bc45a28026eaea42011e8c1884aa2d9dc30f947.zip |
refs: teach arbitrary repo support to iterators
Note that should_pack_ref() is called when writing refs, which is only
supported for the_repository, hence the_repository is hardcoded there.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index d28440c9cc..500d77864d 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -66,6 +66,7 @@ int refname_is_safe(const char *refname); * referred-to object does not exist, emit a warning and return false. */ int ref_resolves_to_object(const char *refname, + struct repository *repo, const struct object_id *oid, unsigned int flags); |