From 6eb8ae00d4bceaf660a07d8bc5ab8d6ddccbe1af Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Mon, 18 Apr 2005 11:39:48 -0700 Subject: [PATCH] Header files for object parsing This adds the structs and function declarations for parsing git objects. Signed-Off-By: Daniel Barkalow Signed-off-by: Linus Torvalds --- commit.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 commit.h (limited to 'commit.h') diff --git a/commit.h b/commit.h new file mode 100644 index 0000000000..4afd27b109 --- /dev/null +++ b/commit.h @@ -0,0 +1,27 @@ +#ifndef COMMIT_H +#define COMMIT_H + +#include "object.h" +#include "tree.h" + +struct commit_list { + struct commit *item; + struct commit_list *next; +}; + +struct commit { + struct object object; + unsigned long date; + struct commit_list *parents; + struct tree *tree; +}; + +extern const char *commit_type; + +struct commit *lookup_commit(unsigned char *sha1); + +int parse_commit(struct commit *item); + +void free_commit_list(struct commit_list *list); + +#endif /* COMMIT_H */ -- cgit v1.2.3