summaryrefslogtreecommitdiff
path: root/refs/refs-internal.h
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2017-09-08 15:51:44 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-09 03:18:03 +0900
commit3bf4f56134c39a0c404ddf1a38779d67649e1c14 (patch)
tree5293acea6bed48f23c2cd3d518ee748a2c0299fe /refs/refs-internal.h
parentpacked-backend: don't adjust the reference count on lock/unlock (diff)
downloadtgif-3bf4f56134c39a0c404ddf1a38779d67649e1c14.tar.xz
struct ref_transaction: add a place for backends to store data
`packed_ref_store` is going to want to store some transaction-wide data, so make a place for it. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r--refs/refs-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index b02dc5a7e3..d7d344de73 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -242,6 +242,7 @@ struct ref_transaction {
size_t alloc;
size_t nr;
enum ref_transaction_state state;
+ void *backend_data;
};
/*