summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-12-12 08:56:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-12 19:43:47 (GMT)
commitf3b661f766c1525265d065fdd0529985979c80c6 (patch)
treeef98df2fc03daee9e9c897ae8eba40358eea3b68 /parse-options.h
parent2e376b3156ff30dcd359b7c424fcbdbab5ec7709 (diff)
downloadgit-f3b661f766c1525265d065fdd0529985979c80c6.zip
git-f3b661f766c1525265d065fdd0529985979c80c6.tar.gz
git-f3b661f766c1525265d065fdd0529985979c80c6.tar.bz2
expire_reflog(): use a lock_file for rewriting the reflog file
We don't actually need the locking functionality, because we already hold the lock on the reference itself, which is how the reflog file is locked. But the lock_file code can do some of the bookkeeping for us, and it is more careful than the old code here was. For example: * It correctly handles the case that the reflog lock file already exists for some reason or cannot be opened. * It correctly cleans up the lockfile if the program dies. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'parse-options.h')
0 files changed, 0 insertions, 0 deletions