X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=refs.h;h=6c946eabcfcf4d29dc0157415fb8e48cd278e2c8;hb=021b6e454944a4fba878651ebf9bfe0a3f6c3077;hp=b7e9df2fa90592fff6ff0472e2f50ab67d0dcc8f;hpb=4bd18c43d9a8a8fc1aa598926100f6999953ba48;p=git.git diff --git a/refs.h b/refs.h index b7e9df2f..6c946eab 100644 --- a/refs.h +++ b/refs.h @@ -4,8 +4,10 @@ struct ref_lock { char *ref_file; char *lock_file; + char *log_file; unsigned char old_sha1[20]; int lock_fd; + int force_write; }; /* @@ -33,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);