Add basic functionality for commit lookup/parsing
commit417f0abc9b41f01520df863567b25efd03bd281c
authorVicent Marti <tanoku@gmail.com>
Fri, 14 May 2010 16:44:49 +0000 (14 18:44 +0200)
committerAndreas Ericsson <ae@op5.se>
Wed, 2 Jun 2010 08:32:06 +0000 (2 10:32 +0200)
tree0ebbc36594071221b685805590415d74624f41e3
parent1bb11859357114684a1a740e471edf1a7541b82a
Add basic functionality for commit lookup/parsing

The external API function "git_commit_parse" has been renamed
to "git_commit_lookup" and has been partially implemented with
support for loading commits straight from the ODB. It still lacks
the functionality to lookup cached commits in the revpool and to
resolve tags to commits.

The following internal functions have been partially implemented:

int git_commit__parse_buffer(...);
int git_commit__parse_time(...);
int git_commit__parse_oid(...);

Commits are now fully parsed but the generated parent and tree
references are not handled yet.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
src/commit.c
src/commit.h
src/git/commit.h