mirror of
https://github.com/git/git.git
synced 2024-11-28 12:34:08 +08:00
6eb8ae00d4
This adds the structs and function declarations for parsing git objects. Signed-Off-By: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
28 lines
459 B
C
28 lines
459 B
C
#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 */
|