X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=refs.h;h=762ce504b5eba3aacff204321a7c41db2b1e6053;hb=7e7db5e4520388d3a6f1efbe2f7a29d43bd06a2b;hp=4a18b083f52a15e5216d583644e590d666cae097;hpb=e5498e8a9f9a596ecff78426bbf904626cd7863a;p=git.git diff --git a/refs.h b/refs.h index 4a18b083f..762ce504b 100644 --- a/refs.h +++ b/refs.h @@ -68,6 +68,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); +/** Setup reflog before using. **/ +int log_ref_setup(const char *ref_name, char *logfile, int bufsize); + /** Reads log for the value of ref during at_time. **/ extern int read_ref_at(const char *ref, unsigned long at_time, int cnt, unsigned char *sha1, char **msg, unsigned long *cutoff_time, int *cutoff_tz, int *cutoff_cnt);