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>2013-07-08 08:56:11 +0400
committerVicent Marti <tanoku@gmail.com>2013-07-10 22:50:32 +0400
commit9abc78ae6157167682f061b4f73eea51ab7d7342 (patch)
treee037ab6838882697af78b930dcbf1da828943d3e /src/commit.h
parentbc6f0839ebd5794c99d5b488d431188a162a064d (diff)
Convert commit->parent_ids to git_array_t
This converts the array of parent SHAs from a git_vector where each SHA has to be separately allocated to a git_array_t where all the SHAs can be kept in one block. Since the two collections have almost identical APIs, there isn't much involved in making the change. I did add an API to git_array_t so that it could be allocated at a precise initial size.
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.h b/src/commit.h
index 70d8fc690..22fc898a1 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -10,14 +10,14 @@
#include "git2/commit.h"
#include "tree.h"
#include "repository.h"
-#include "vector.h"
+#include "array.h"
#include <time.h>
struct git_commit {
git_object object;
- git_vector parent_ids;
+ git_array_t(git_oid) parent_ids;
git_oid tree_id;
git_signature *author;