X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit.h;h=ce0b436711161d667eb9c067d343b82bad20f21d;hb=5aad72f2bc1527e1fcdf460f0a36b0bcc4117b4a;hp=4afd27b1095cf9f9203c96db2b9f2b0bba5063d8;hpb=6eb8ae00d4bceaf660a07d8bc5ab8d6ddccbe1af;p=git.git diff --git a/commit.h b/commit.h index 4afd27b1..ce0b4367 100644 --- a/commit.h +++ b/commit.h @@ -20,8 +20,20 @@ extern const char *commit_type; struct commit *lookup_commit(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 */