diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-02 04:58:22 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-02 04:58:22 +0200 |
commit | eec952351363354cad2e094a10d8545e4d2a996f (patch) | |
tree | 901189c584a5bbe12d0387ff6cb2de174d55f069 /src/commit.h | |
parent | 41109a7e7eb4544dc64c563d947f6655d45c1a28 (diff) | |
download | libgit2-eec952351363354cad2e094a10d8545e4d2a996f.tar.gz |
Commit parents now use the common 'vector' code
No more linked lists, no more O(n) access.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/commit.h')
-rw-r--r-- | src/commit.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/commit.h b/src/commit.h index 1c765abd3..617d237f9 100644 --- a/src/commit.h +++ b/src/commit.h @@ -4,19 +4,15 @@ #include "git/commit.h" #include "tree.h" #include "repository.h" +#include "vector.h" #include <time.h> -typedef struct git_commit_parents { - git_commit *commit; - struct git_commit_parents *next; -} git_commit_parents; - struct git_commit { git_object object; time_t commit_time; - git_commit_parents *parents; + git_vector parents; git_tree *tree; git_person *author; |