]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
tempfile: a new module for handling temporary files
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 10 Aug 2015 09:47:41 +0000 (11:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2015 19:57:14 +0000 (12:57 -0700)
commit1a9d15db25487bb3fc009a88375cc206a60e0e3b
tree0e844584aa81b7137e813813ca32f8fa84eddb8f
parent9c77381d6a495e102b811df954d0fa14e62250ab
tempfile: a new module for handling temporary files

A lot of work went into defining the state diagram for lockfiles and
ensuring correct, race-resistant cleanup in all circumstances.

Most of that infrastructure can be applied directly to *any* temporary
file. So extract a new "tempfile" module from the "lockfile" module.
Reimplement lockfile on top of tempfile.

Subsequent commits will add more users of the new module.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
lockfile.c
lockfile.h
tempfile.c [new file with mode: 0644]
tempfile.h [new file with mode: 0644]