aboutsummaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorShawn Pearce <spearce@spearce.org>2006-05-19 03:29:05 -0400
committerJunio C Hamano <junkio@cox.net>2006-05-19 15:02:43 -0700
commit732232a123e1e61e38babb1c572722bb8a189ba3 (patch)
tree55a57e1e2c532d3724b32b81e40aa1c818b80458 /refs.h
parentc22a7f0fb96d5c742581422452d3d68139b79ad6 (diff)
downloadgit-732232a123e1e61e38babb1c572722bb8a189ba3.tar.gz
git-732232a123e1e61e38babb1c572722bb8a189ba3.tar.xz
Force writing ref if it doesn't exist.
Normally we try to skip writing a ref if its value hasn't changed but in the special case that the ref doesn't exist but the new value is going to be 0{40} then force writing the ref anyway. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 2c854de3f..6c946eabc 100644
--- a/refs.h
+++ b/refs.h
@@ -7,6 +7,7 @@ struct ref_lock {
char *log_file;
unsigned char old_sha1[20];
int lock_fd;
+ int force_write;
};
/*