]> git.proxmox.com Git - libgit2.git/commit
Introduce reference transactions
authorCarlos Martín Nieto <cmn@dwim.me>
Sat, 28 Jun 2014 04:39:38 +0000 (06:39 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Tue, 30 Sep 2014 13:44:32 +0000 (15:44 +0200)
commitab8d9242f54e2c570f86a45a509b9420911a4d44
tree6070f721e7e93982a0fe37882e5700de5c1186a9
parentbdeb8772fe846eeeea92cb2d9adb85315f3b8417
Introduce reference transactions

A transaction allows you to lock multiple references and set up changes
for them before applying the changes all at once (or as close as the
backend supports).

This can be used for replication purposes, or for making sure some
operations run when the reference is locked and thus cannot be changed.
include/git2/sys/refdb_backend.h
include/git2/transaction.h [new file with mode: 0644]
include/git2/types.h
src/refdb.c
src/refdb.h
src/refdb_fs.c
src/refs.c
src/refs.h
src/transaction.c [new file with mode: 0644]
tests/refs/transactions.c [new file with mode: 0644]