diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-02-11 07:21:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-12 19:50:39 -0800 |
commit | cf6672edb1eb90ef7f79d37eca08c93a662802a8 (patch) | |
tree | acf89046c371638ab9ef525979cd35a8a68289fd /refs.h | |
parent | a1287f7540d2a27fcde26b356dc176c5dbb4f4e2 (diff) | |
download | git-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.h | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); |