This is a re-roll of [1]. The only change is the addition of a "wait"
in the test to avoid an unlikely race between the lockfile-removing
subprocess and the attempt by the outer layer of the test to delete
the test directory.
Thanks to Hannes, Stefan, and Peff for their comments about v1.
Michael
[1] http://thread.gmane.org/gmane.comp.version-control.git/268137
Michael Haggerty (2):
lockfile: allow file locking to be retried with a timeout
lock_packed_refs(): allow retries when acquiring the packed-refs lock
Documentation/config.txt | 6 ++++
lockfile.c | 79 ++++++++++++++++++++++++++++++++++++++++++++++--
lockfile.h | 16 ++++++++--
refs.c | 12 +++++++-
t/t3210-pack-refs.sh | 17 +++++++++++
5 files changed, 125 insertions(+), 5 deletions(-)
--
2.1.4