diff options
author | Patrick Steinhardt <ps@pks.im> | 2015-12-01 10:03:56 +0100 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2015-12-01 10:07:00 +0100 |
commit | 7f8fe1d45e086adc9e7f3f0c33b624eeb3774033 (patch) | |
tree | 638145f66aaa879b564d46e034eb7298a4de8070 /src/commit.h | |
parent | 337b2b08f46ea77d61fa66657ad62d8702bc233a (diff) | |
download | libgit2-7f8fe1d45e086adc9e7f3f0c33b624eeb3774033.tar.gz |
commit: introduce `git_commit_body`
It is already possible to get a commit's summary with the
`git_commit_summary` function. It is not possible to get the
remaining part of the commit message, that is the commit
message's body.
Fix this by introducing a new function `git_commit_body`.
Diffstat (limited to 'src/commit.h')
-rw-r--r-- | src/commit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commit.h b/src/commit.h index efb080b50..d01ac2b2f 100644 --- a/src/commit.h +++ b/src/commit.h @@ -28,6 +28,7 @@ struct git_commit { char *raw_header; char *summary; + char *body; }; void git_commit__free(void *commit); |