X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit.h;h=620e936bbc70d713ac351af3a2950400579841dc;hb=d6db01075b65da2b8584a0450619390893aae103;hp=4afd27b1095cf9f9203c96db2b9f2b0bba5063d8;hpb=6eb8ae00d4bceaf660a07d8bc5ab8d6ddccbe1af;p=git.git diff --git a/commit.h b/commit.h index 4afd27b1..620e936b 100644 --- a/commit.h +++ b/commit.h @@ -19,9 +19,22 @@ struct commit { extern const char *commit_type; struct commit *lookup_commit(unsigned char *sha1); +struct commit *lookup_commit_reference(unsigned char *sha1); + +int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size); int parse_commit(struct commit *item); +void commit_list_insert(struct commit *item, struct commit_list **list_p); + void free_commit_list(struct commit_list *list); +void sort_by_date(struct commit_list **list); + +/** Removes the first commit from a list sorted by date, and adds all + * of its parents. + **/ +struct commit *pop_most_recent_commit(struct commit_list **list, + unsigned int mark); + #endif /* COMMIT_H */