summaryrefslogtreecommitdiff
path: root/src/refs.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-01-02 09:56:48 +0100
committerVicent Martí <tanoku@gmail.com>2012-01-02 09:56:48 +0100
commit9191a6d2466d0f3c187a66f65757c95c1c3f772d (patch)
tree1fca9c4f9498eb01b3ff91b2ca4425d83c62b393 /src/refs.c
parent9dd4c3e80690ec08eba604e5218d0f4abb8f1a02 (diff)
parentbd370b14fefdba3844a9bf0bbf87171ca48f49be (diff)
downloadlibgit2-9191a6d2466d0f3c187a66f65757c95c1c3f772d.tar.gz
Merge remote-tracking branch 'arrbee/git-attributes' into development
Conflicts: tests-clay/clay_main.c
Diffstat (limited to 'src/refs.c')
-rw-r--r--src/refs.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/refs.c b/src/refs.c
index 4950fd595..2842adab1 100644
--- a/src/refs.c
+++ b/src/refs.c
@@ -31,17 +31,6 @@ struct packref {
static const int default_table_size = 32;
-static uint32_t reftable_hash(const void *key, int hash_id)
-{
- static uint32_t hash_seeds[GIT_HASHTABLE_HASHES] = {
- 2147483647,
- 0x5d20bb23,
- 0x7daaab3c
- };
-
- return git__hash(key, strlen((const char *)key), hash_seeds[hash_id]);
-}
-
static int reference_read(
git_fbuffer *file_content,
time_t *mtime,
@@ -445,9 +434,7 @@ static int packed_load(git_repository *repo)
/* First we make sure we have allocated the hash table */
if (ref_cache->packfile == NULL) {
ref_cache->packfile = git_hashtable_alloc(
- default_table_size,
- reftable_hash,
- (git_hash_keyeq_ptr)&git__strcmp_cb);
+ default_table_size, git_hash__strhash_cb, git_hash__strcmp_cb);
if (ref_cache->packfile == NULL) {
error = GIT_ENOMEM;