X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=ba9f63813eba004ae409eba8741266a074161239;hb=8851f4800c15fe91b6a53e9e284787b983226c41;hp=4c05864fb426d61a652f7df12c13315665972846;hpb=d5c527448db30be55553e0b125015e8d444f8dbc;p=git.git diff --git a/commit.h b/commit.h index 4c05864fb..ba9f63813 100644 --- a/commit.h +++ b/commit.h @@ -65,6 +65,8 @@ enum cmit_fmt { extern int non_ascii(int); struct rev_info; /* in revision.h, it circularly uses enum cmit_fmt */ +extern char *reencode_commit_message(const struct commit *commit, + const char **encoding_p); extern void get_commit_format(const char *arg, struct rev_info *); extern void format_commit_message(const struct commit *commit, const void *format, struct strbuf *sb, @@ -131,6 +133,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);