aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-06 13:54:14 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-06 14:30:58 -0700
commitc33d5174d692b1861e0b2f656e51b80b2b00a23c (patch)
tree6900462def5a01ca8d3fe200c38e02dcd2c857a9 /refs.h
parent021b6e454944a4fba878651ebf9bfe0a3f6c3077 (diff)
downloadgit-c33d5174d692b1861e0b2f656e51b80b2b00a23c.tar.gz
git-c33d5174d692b1861e0b2f656e51b80b2b00a23c.tar.xz
refs.c: convert it to use lockfile interface.
This updates the ref locking code to use creat-rename locking code we use for the index file, so that it can borrow the code to clean things up upon signals and program termination. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index 6c946eabc..bc01691ec 100644
--- a/refs.h
+++ b/refs.h
@@ -3,8 +3,8 @@
struct ref_lock {
char *ref_file;
- char *lock_file;
char *log_file;
+ struct lock_file *lk;
unsigned char old_sha1[20];
int lock_fd;
int force_write;