path: root/refs.h
diff options
authorMichael Haggerty <>2012-02-11 06:21:01 (GMT)
committerJunio C Hamano <>2012-02-13 03:50:39 (GMT)
commitcf6672edb1eb90ef7f79d37eca08c93a662802a8 (patch)
treeacf89046c371638ab9ef525979cd35a8a68289fd /refs.h
parenta1287f7540d2a27fcde26b356dc176c5dbb4f4e2 (diff)
refs: remove the extra_refs API
The extra_refs provided a kludgy way to create fake references at a global level in the hope that they would only affect some particular code path. The last user of this API been rewritten, so strip this stuff out before somebody else gets the bad idea of using it. Signed-off-by: Michael Haggerty <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'refs.h')
1 files changed, 0 insertions, 8 deletions
diff --git a/refs.h b/refs.h
index 00ba1e2..33202b0 100644
--- a/refs.h
+++ b/refs.h
@@ -56,14 +56,6 @@ extern void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refn
extern void add_packed_ref(const char *refname, const unsigned char *sha1);
- * 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().
- */
-extern void add_extra_ref(const char *refname, const unsigned char *sha1, int flags);
-extern void clear_extra_refs(void);
extern int ref_exists(const char *);
extern int peel_ref(const char *refname, unsigned char *sha1);