X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=f3eaf1d048a3e799eb571fbfe1302c08b3d394a6;hb=900a5d075e8b48025439966dc3863189874bae3b;hp=3a7b06a828930ca23d0fb045feab993a1452b2d3;hpb=ff6e93fe605b748055267fd325c760d0f32dcf92;p=git.git diff --git a/commit.h b/commit.h index 3a7b06a82..f3eaf1d04 100644 --- a/commit.h +++ b/commit.h @@ -40,6 +40,8 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size); int parse_commit(struct commit *item); +void unparse_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); @@ -133,6 +135,7 @@ extern int is_repository_shallow(void); extern struct commit_list *get_shallow_commits(struct object_array *heads, int depth, int shallow_flag, int not_shallow_flag); +int is_descendant_of(struct commit *, struct commit_list *); int in_merge_bases(struct commit *, struct commit **, int); extern int interactive_add(int argc, const char **argv, const char *prefix);