summaryrefslogtreecommitdiff
path: root/src/revwalk.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-05-18 20:55:19 +0200
committerAndreas Ericsson <ae@op5.se>2010-06-02 10:32:06 +0200
commit08d5d00056a7237bf6c60f85a6e72b7549cf9133 (patch)
treeb47ba8387c1d7209d4976af9c3928f6ce93ed545 /src/revwalk.h
parent42281e007e15713713b2ff4324d60360332e194e (diff)
downloadlibgit2-08d5d00056a7237bf6c60f85a6e72b7549cf9133.tar.gz
Add commit parents to parsed commits and commit lists to the revpool.
Basic support for iterating the revpool. The following functions of the revwalk API have been partially implemented: void gitrp_reset(git_revpool *pool); void gitrp_push(git_revpool *pool, git_commit *commit); void gitrp_prepare_walk(git_revpool *pool); git_commit *gitrp_next(git_revpool *pool); Parsed commits' parents are now also parsed and stored in a "git_commit_list" structure (linked list). Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/revwalk.h')
-rw-r--r--src/revwalk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/revwalk.h b/src/revwalk.h
index 2ef4e5d83..edf57b4b9 100644
--- a/src/revwalk.h
+++ b/src/revwalk.h
@@ -6,6 +6,11 @@
struct git_revpool {
git_odb *db;
+ git_commit_list *iterator;
+ git_commit_list *commits;
+
+ unsigned walking:1,
+ topological_sort:1;
};
#endif /* INCLUDE_revwalk_h__ */