Commit f99ca52378cf3097fb56c7dbec379b8fc4c5459b

Carlos Martín Nieto 2014-06-30T06:38:45

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.