summaryrefslogtreecommitdiff
path: root/src/transaction.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix visibility of transaction symbolDamien PROFETA2015-06-121-0/+1
| | | | | Transaction.c did not include the visibility definition of its symbol (that are in git2/transaction.h) and so was by default hidden.
* Remove extra semicolon outside of a functionStefan Widgren2015-02-151-1/+1
| | | | | Without this change, compiling with gcc and pedantic generates warning: ISO C does not allow extra ‘;’ outside of a function.
* Clean up various compiler warningsEdward Thomson2014-10-261-3/+3
|
* transaction: rename lock() to lock_ref()cmn/reference-transactionCarlos Martín Nieto2014-10-091-1/+1
| | | | | This leaves space for future expansion to locking other resources without having to change the API for references.
* Introduce reference transactionsCarlos Martín Nieto2014-09-301-0/+352
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.