X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=refs.h;h=33202b0d4c85cafdaf60b568a6f728dd83462c46;hb=09b90fb3c065ac5ac2ad051596b036131ecedbd5;hp=d4982915c58c7c17229e4a6621d02337e2550e13;hpb=3ecd0c8b4d9e245e255aa4c061d6a474eb571298;p=git.git diff --git a/refs.h b/refs.h index d4982915c..33202b0d4 100644 --- a/refs.h +++ b/refs.h @@ -51,13 +51,11 @@ extern int for_each_rawref(each_ref_fn, void *); extern void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refname); /* - * Extra refs will be listed by for_each_ref() before any actual refs - * for the duration of this process or until clear_extra_refs() is - * called. Only extra refs added before for_each_ref() is called will - * be listed on a given call of for_each_ref(). + * Add a reference to the in-memory packed reference cache. To actually + * write the reference to the packed-refs file, call pack_refs(). */ -extern void add_extra_ref(const char *refname, const unsigned char *sha1, int flags); -extern void clear_extra_refs(void); +extern void add_packed_ref(const char *refname, const unsigned char *sha1); + extern int ref_exists(const char *); extern int peel_ref(const char *refname, unsigned char *sha1);