X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=95f981a1a93989d89edb0c5b850fa86db2071b50;hb=f2a37151d4624906e34a9bcafb2ad79d0e8cb7ec;hp=d1674d7f16465b6288fe5e20b03f77dd3a403546;hpb=d6d994d9115ee7ce5bb5ffcfb75fea838174b9c4;p=git.git diff --git a/commit.h b/commit.h index d1674d7f1..95f981a1a 100644 --- a/commit.h +++ b/commit.h @@ -70,7 +70,7 @@ 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, + const char *format, struct strbuf *sb, enum date_mode dmode); extern void pretty_print_commit(enum cmit_fmt fmt, const struct commit*, struct strbuf *, @@ -140,6 +140,8 @@ 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); +extern int run_add_interactive(const char *revision, const char *patch_mode, + const char **pathspec); static inline int single_parent(struct commit *commit) {