summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-12-10 12:14:09 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-12-10 12:14:09 +0100
commit6aa06b65cfcce164d7ad3ef184f40acb68406078 (patch)
tree3ebbc7f24979c83f34905602627bfee9f4ef5a13 /include/git2/diff.h
parentdc49eb585f012ea8df309d90396873f91b2d3ae5 (diff)
parent254e0a33ee66c65948e15efbe93a810c4077e324 (diff)
downloadlibgit2-6aa06b65cfcce164d7ad3ef184f40acb68406078.tar.gz
Merge pull request #3522 from pks-t/email-format-commit-message
diff: include commit message when formatting patch
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r--include/git2/diff.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index cbffdb49a..3eb265652 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -1286,12 +1286,15 @@ typedef struct {
/** Summary of the change */
const char *summary;
+ /** Commit message's body */
+ const char *body;
+
/** Author of the change */
const git_signature *author;
} git_diff_format_email_options;
#define GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION 1
-#define GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT {GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION, 0, 1, 1, NULL, NULL, NULL}
+#define GIT_DIFF_FORMAT_EMAIL_OPTIONS_INIT {GIT_DIFF_FORMAT_EMAIL_OPTIONS_VERSION, 0, 1, 1, NULL, NULL, NULL, NULL}
/**
* Create an e-mail ready patch from a diff.