X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=77de9621d9c926c6fb8a2bf9ca81c6c376a2ad41;hb=1c7ac06dc612c469d74be6be8164465d65a7829a;hp=fda7ad03c0b1d0f2c2cd1e758dbaecf47742c576;hpb=fab600ce2ed086ba87499ffe3c35c46f85e7ab61;p=git.git diff --git a/commit.h b/commit.h index fda7ad03c..77de9621d 100644 --- a/commit.h +++ b/commit.h @@ -41,6 +41,7 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size); int parse_commit(struct commit *item); struct commit_list * commit_list_insert(struct commit *item, struct commit_list **list_p); +unsigned commit_list_count(const struct commit_list *l); struct commit_list * insert_by_date(struct commit *item, struct commit_list **list); void free_commit_list(struct commit_list *list); @@ -120,6 +121,7 @@ int read_graft_file(const char *graft_file); struct commit_graft *lookup_commit_graft(const unsigned char *sha1); extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2, int cleanup); +extern struct commit_list *get_octopus_merge_bases(struct commit_list *in); extern int register_shallow(const unsigned char *sha1); extern int unregister_shallow(const unsigned char *sha1); @@ -137,4 +139,6 @@ static inline int single_parent(struct commit *commit) return commit->parents && !commit->parents->next; } +struct commit_list *reduce_heads(struct commit_list *heads); + #endif /* COMMIT_H */