summaryrefslogtreecommitdiff
path: root/src/commit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit.h')
-rw-r--r--src/commit.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/commit.h b/src/commit.h
index fe4db4d4c..7ab2d5413 100644
--- a/src/commit.h
+++ b/src/commit.h
@@ -9,10 +9,19 @@
#define GIT_COMMIT_HIDE (1 << 1)
#define GIT_COMMIT_DELAY (1 << 2)
+struct git_commit_list {
+ struct git_commit *commit;
+ struct git_commit_list *next;
+};
+
+typedef struct git_commit_list git_commit_list;
+
struct git_commit {
git_oid id;
time_t commit_time;
git_revpool *pool;
+ git_commit_list *parents;
+
unsigned parsed:1,
flags:26;
};
@@ -21,4 +30,6 @@ 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);
+void git_commit_list_insert(git_commit_list **list, git_commit *commit);
+
#endif