X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=refs.h;h=6c946eabcfcf4d29dc0157415fb8e48cd278e2c8;hb=3026402cbc60c003c4bc043368afc619e4d9b3cd;hp=43831e9be70b8dacbd6afff14435f6a0509dc173;hpb=6de08ae688b9f2426410add155079e04baff33bd;p=git.git diff --git a/refs.h b/refs.h index 43831e9b..6c946eab 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; }; /* @@ -34,6 +35,9 @@ extern void unlock_ref (struct ref_lock *lock); /** Writes sha1 into the ref specified by the lock. **/ extern int write_ref_sha1(struct ref_lock *lock, const unsigned char *sha1, const char *msg); +/** Reads log for the value of ref during at_time. **/ +extern int read_ref_at(const char *ref, unsigned long at_time, unsigned char *sha1); + /** Returns 0 if target has the right format for a ref. **/ extern int check_ref_format(const char *target);