X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=commit.h;h=d61d084c89c72f4fe79c654db721df31c4f04224;hb=c4b83e618f1df7d8ecc9392fa40e5bebccbe6b5a;hp=4afd27b1095cf9f9203c96db2b9f2b0bba5063d8;hpb=6eb8ae00d4bceaf660a07d8bc5ab8d6ddccbe1af;p=git.git diff --git a/commit.h b/commit.h index 4afd27b1..d61d084c 100644 --- a/commit.h +++ b/commit.h @@ -22,6 +22,16 @@ struct commit *lookup_commit(unsigned char *sha1); 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 */