X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit.h;h=d61d084c89c72f4fe79c654db721df31c4f04224;hb=5d2f8b2753183e6cf2238a6f2d847e54211ba11f;hp=4afd27b1095cf9f9203c96db2b9f2b0bba5063d8;hpb=b51ad4314078298194d23d46e2b4473ffd32a88a;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 */