#ifndef REFS_H#define REFS_H/** Reads the refs file specified into sha1 **/externintget_ref_sha1(constchar*ref,unsignedchar*sha1);/** Locks ref and returns the fd to give to write_ref_sha1() if the ref * has the given value currently; otherwise, returns -1. **/externintlock_ref_sha1(constchar*ref,constunsignedchar*old_sha1);/** Writes sha1 into the refs file specified, locked with the given fd. **/externintwrite_ref_sha1(constchar*ref,intfd,constunsignedchar*sha1);/** Writes sha1 into the refs file specified. **/externintwrite_ref_sha1_unlocked(constchar*ref,constunsignedchar*sha1);/** Returns 0 if target has the right format for a ref. **/externintcheck_ref_format(constchar*target);#endif /* REFS_H */