summaryrefslogtreecommitdiff
path: root/src/fileops.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-12-24 14:01:38 +0000
committerCarlos Martín Nieto <cmn@dwim.me>2016-11-14 11:34:08 +0100
commit2d9aec99fb6a6a456aecbc354443c0c87e8a34e9 (patch)
tree19b23da80c5ee879e9f5a027cb98b149a4556599 /src/fileops.c
parent9914efec2a0c32477b25897c98cbf78742eb2f94 (diff)
downloadlibgit2-2d9aec99fb6a6a456aecbc354443c0c87e8a34e9.tar.gz
refdb: make ref deletion after pack safer
In order not to undo concurrent modifications to references, we must make sure that we only delete a loose reference if it still has the same value as when we packed it. This means we need to lock it and then compare the value with the one we put in the packed file.
Diffstat (limited to 'src/fileops.c')
0 files changed, 0 insertions, 0 deletions