From eec952351363354cad2e094a10d8545e4d2a996f Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 2 Dec 2010 04:58:22 +0200 Subject: Commit parents now use the common 'vector' code No more linked lists, no more O(n) access. Signed-off-by: Vicent Marti --- src/commit.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/commit.h') 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 -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; -- cgit v1.2.1