summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2017-03-26 02:42:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-14 10:53:25 (GMT)
commitc0fe4e8ba3db828079f1288169a94294e713b3d8 (patch)
tree1d07025e41a5624acbad8cbfad1d7969a986d3c4 /refs
parent7d2df051d05bc65a0a540ba080f07b421b4d99d7 (diff)
downloadgit-c0fe4e8ba3db828079f1288169a94294e713b3d8.zip
git-c0fe4e8ba3db828079f1288169a94294e713b3d8.tar.gz
git-c0fe4e8ba3db828079f1288169a94294e713b3d8.tar.bz2
refs: new transaction related ref-store api
The transaction struct now takes a ref store at creation and will operate on that ref store alone. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-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 5f26208..6904986 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -200,6 +200,7 @@ enum ref_transaction_state {
* as atomically as possible. This structure is opaque to callers.
*/
struct ref_transaction {
+ struct ref_store *ref_store;
struct ref_update **updates;
size_t alloc;
size_t nr;