summaryrefslogtreecommitdiff
path: root/src/transaction.c
Commit message (Collapse)AuthorAgeFilesLines
* pool: Simplify implementationVicent Marti2015-10-281-2/+1
|
* Don't free config in `git_transaction_commit`.Arthur Schreiber2015-09-131-1/+0
| | | | The config is not owned by the transaction, so please don’t free it.
* config: perform unlocking via git_transactioncmn/config-txCarlos Martín Nieto2015-08-121-0/+42
| | | | | This makes the API for commiting or discarding changes the same as for references.
* 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.