Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-04-26 02:20:28 +0400
committerRussell Belfer <rb@github.com>2012-04-26 02:20:28 +0400
commitc2b670436f4cc8901811ae0348f3c56150d1ccd5 (patch)
tree31fdce14700ca5fa9c223521ab842f3127c0c452 /src/revwalk.c
parent01fed0a8f9b80e80c8f76cde29fc0d66cb77fff7 (diff)
Rename git_khash_str to git_strmap, etc.
This renamed `git_khash_str` to `git_strmap`, `git_hash_oid` to `git_oidmap`, and deletes `git_hashtable` from the tree, plus adds unit tests for `git_strmap`.
Diffstat (limited to 'src/revwalk.c')
-rw-r--r--src/revwalk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/revwalk.c b/src/revwalk.c
index 5867e133e..1cfff3674 100644
--- a/src/revwalk.c
+++ b/src/revwalk.c
@@ -10,14 +10,14 @@
#include "odb.h"
#include "pqueue.h"
#include "pool.h"
-#include "khash_oid.h"
+#include "oidmap.h"
#include "git2/revwalk.h"
#include "git2/merge.h"
#include <regex.h>
-GIT_KHASH_OID__IMPLEMENTATION;
+GIT__USE_OIDMAP;
#define PARENT1 (1 << 0)
#define PARENT2 (1 << 1)
@@ -48,7 +48,7 @@ struct git_revwalk {
git_repository *repo;
git_odb *odb;
- git_khash_oid *commits;
+ git_oidmap *commits;
git_pool commit_pool;
commit_list *iterator_topo;
@@ -726,7 +726,7 @@ int git_revwalk_new(git_revwalk **revwalk_out, git_repository *repo)
memset(walk, 0x0, sizeof(git_revwalk));
- walk->commits = git_khash_oid_alloc();
+ walk->commits = git_oidmap_alloc();
GITERR_CHECK_ALLOC(walk->commits);
if (git_pqueue_init(&walk->iterator_time, 8, commit_time_cmp) < 0 ||
@@ -757,7 +757,7 @@ void git_revwalk_free(git_revwalk *walk)
git_revwalk_reset(walk);
git_odb_free(walk->odb);
- git_khash_oid_free(walk->commits);
+ git_oidmap_free(walk->commits);
git_pool_clear(&walk->commit_pool);
git_pqueue_free(&walk->iterator_time);
git_vector_free(&walk->twos);