diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-10 15:56:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-10 15:56:19 -0700 |
commit | 2c5c66be6ecdd10f5a88c3548a1494bf9edf483a (patch) | |
tree | af9ecd6a8aa07c68496f4974793270b7b705f2d9 /refs.h | |
parent | 9bd500048d467791902b1a5e8c22165325952fde (diff) | |
parent | 17d68a54def69b20b39dd4f7323b359a827e6017 (diff) | |
download | git-2c5c66be6ecdd10f5a88c3548a1494bf9edf483a.tar.gz |
Merge branch 'jp/get-ref-dir-unsorted'
* jp/get-ref-dir-unsorted:
refs.c: free duplicate entries in the ref array instead of leaking them
refs.c: abort ref search if ref array is empty
refs.c: ensure struct whose member may be passed to realloc is initialized
refs: Use binary search to lookup refs faster
Don't sort ref_list too early
Conflicts:
refs.c
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ extern void warn_dangling_symref(FILE *fp, const char *msg_fmt, const char *refn */ extern void add_extra_ref(const char *refname, const unsigned char *sha1, int flags); extern void clear_extra_refs(void); -extern int ref_exists(char *); +extern int ref_exists(const char *); extern int peel_ref(const char *, unsigned char *); |