aboutsummaryrefslogtreecommitdiffstats
path: root/refs/refs-internal.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-09-22 12:36:28 -0700
committerJunio C Hamano <gitster@pobox.com>2020-09-22 12:36:28 -0700
commitc9a04f036f6d52a2bca1c41bda6ecc1633c8e4cb (patch)
tree2d3251f00549d0455a0b1ab04587d381a44ee05c /refs/refs-internal.h
parentMerge branch 'jt/threaded-index-pack' (diff)
parentrefs: add GIT_TRACE_REFS debugging mechanism (diff)
downloadgit-c9a04f036f6d52a2bca1c41bda6ecc1633c8e4cb.tar.gz
git-c9a04f036f6d52a2bca1c41bda6ecc1633c8e4cb.zip
Merge branch 'hn/refs-trace-backend'
Developer support. * hn/refs-trace-backend: refs: add GIT_TRACE_REFS debugging mechanism
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r--refs/refs-internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 87a1201bf9..467f4b3c93 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -697,4 +697,9 @@ int parse_loose_ref_contents(const char *buf, struct object_id *oid,
void base_ref_store_init(struct ref_store *refs,
const struct ref_storage_be *be);
+/*
+ * Support GIT_TRACE_REFS by optionally wrapping the given ref_store instance.
+ */
+struct ref_store *maybe_debug_wrap_ref_store(const char *gitdir, struct ref_store *store);
+
#endif /* REFS_REFS_INTERNAL_H */