X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=commit.h;h=80d65b96dafe33b128e4444d81046360eeb105af;hb=70f5d5d31cbf0ba273083805124ad67135142527;hp=aa679867a9376496febd5105121b1f49f3ff96a4;hpb=b52e985a4f824128d01220473b04057a4876060d;p=git.git diff --git a/commit.h b/commit.h index aa679867a..80d65b96d 100644 --- a/commit.h +++ b/commit.h @@ -71,6 +71,21 @@ extern void pretty_print_commit(enum cmit_fmt fmt, const struct commit*, int abbrev, const char *subject, const char *after_subject, enum date_mode, int non_ascii_present); +void pp_user_info(const char *what, enum cmit_fmt fmt, struct strbuf *sb, + const char *line, enum date_mode dmode, + const char *encoding); +void pp_title_line(enum cmit_fmt fmt, + const char **msg_p, + struct strbuf *sb, + const char *subject, + const char *after_subject, + const char *encoding, + int plain_non_ascii); +void pp_remainder(enum cmit_fmt fmt, + const char **msg_p, + struct strbuf *sb, + int indent); + /** Removes the first commit from a list sorted by date, and adds all * of its parents. @@ -113,8 +128,7 @@ extern struct commit_list *get_shallow_commits(struct object_array *heads, int in_merge_bases(struct commit *, struct commit **, int); -extern int interactive_add(void); -extern void add_files_to_cache(int verbose, const char *prefix, const char **files); +extern int interactive_add(int argc, const char **argv, const char *prefix); extern int rerere(void); static inline int single_parent(struct commit *commit)