summaryrefslogtreecommitdiff
path: root/src/commit.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-05-21 02:35:40 +0200
committerAndreas Ericsson <ae@op5.se>2010-06-02 10:32:06 +0200
commit8add01539268300564482f854412cfe9839e980c (patch)
treec620f25d7fb92598b819001c8265d0d324275546 /src/commit.h
parent08d5d00056a7237bf6c60f85a6e72b7549cf9133 (diff)
downloadlibgit2-8add01539268300564482f854412cfe9839e980c.tar.gz
Split git_commit_lookup into separate functions.
git_commit_lookup() now creates commit references without loading them from the ODB. git_commit_parse() creates a commit reference, loads it and parses it from the ODB. Signed-off-by: Vicent Marti <tanoku@gmail.com> Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commit.h b/src/commit.h
index 7ab2d5413..3a6b70664 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -30,6 +30,8 @@ int git_commit__parse_oid(git_oid *oid, char **buffer_out, const char *buffer_en
int git_commit__parse_buffer(git_commit *commit, void *data, size_t len);
int git_commit__parse_time(time_t *commit_time, char *buffer, const char *buffer_end);
+int git_commit_parse_existing(git_commit *commit);
+
void git_commit_list_insert(git_commit_list **list, git_commit *commit);
#endif