summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-02-11 07:21:01 +0100
committerJunio C Hamano <gitster@pobox.com>2012-02-12 19:50:39 -0800
commitcf6672edb1eb90ef7f79d37eca08c93a662802a8 (patch)
treeacf89046c371638ab9ef525979cd35a8a68289fd /refs.h
parenta1287f7540d2a27fcde26b356dc176c5dbb4f4e2 (diff)
downloadgit-cf6672edb1eb90ef7f79d37eca08c93a662802a8.tar.gz
refs: remove the extra_refs APImh/war-on-extra-refs
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 <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/refs.h b/refs.h
index 00ba1e2813..33202b0d4c 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);