summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-02-18 22:56:08 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-19 00:56:46 -0800
commitb02bd65f679024ce25afeddf7e96d6d7aea5fca6 (patch)
tree4322110463b86d392109280018a34acd30669127 /commit.h
parente1a37346210da8b165037984e02f750a6a135480 (diff)
downloadgit-b02bd65f679024ce25afeddf7e96d6d7aea5fca6.tar.gz
Export some email and pretty-printing functions
These will be used for generating the cover letter in addition to the patch emails. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 10e2b5d4cf..80d65b96da 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.