summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-18 12:12:00 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-18 12:12:00 -0700
commitb51ad4314078298194d23d46e2b4473ffd32a88a (patch)
tree3dfffcf747e4fbdb04f1b43251be932f69f55476 /commit.h
parenta4b7dbef4ef53f4fffbda0a6f5eada4c377e3fc5 (diff)
parentb5039db6d25ae25f1cb2db541ed13602784fafc3 (diff)
downloadgit-b51ad4314078298194d23d46e2b4473ffd32a88a.tar.gz
Merge the new object model thing from Daniel Barkalow
This was a real git merge with conflicts. I'll commit the scripts I used to do the merge next. Not pretty, but it's half-way functional.
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h27
1 files changed, 27 insertions, 0 deletions
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 */