diff options
author | Russell Belfer <rb@github.com> | 2013-07-07 21:56:11 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-07-10 20:50:32 +0200 |
commit | 9abc78ae6157167682f061b4f73eea51ab7d7342 (patch) | |
tree | e037ab6838882697af78b930dcbf1da828943d3e /src/commit.h | |
parent | bc6f0839ebd5794c99d5b488d431188a162a064d (diff) | |
download | libgit2-9abc78ae6157167682f061b4f73eea51ab7d7342.tar.gz |
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.h | 4 |
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; |