summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-30 06:38:45 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-30 15:52:13 +0200
commitf99ca52378cf3097fb56c7dbec379b8fc4c5459b (patch)
tree2577e291fc15a08a34d33f8fa944c8bdaf67a63b /include/git2
parentab8d9242f54e2c570f86a45a509b9420911a4d44 (diff)
downloadlibgit2-f99ca52378cf3097fb56c7dbec379b8fc4c5459b.tar.gz
stash: use a transaction to modify the reflog
The stash is implemented as the refs/stash reference and its reflog. In order to modify the reflog, we need avoid races by making sure we're the only ones allowed to modify the reflog. We achieve this via the transactions API. Locking the reference gives us exclusive write access, letting us modify and write it without races.
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions