diff options
author | Russell Belfer <rb@github.com> | 2013-07-01 15:41:01 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-07-10 20:50:32 +0200 |
commit | f094f9052fba43707cb5662a362511eeea4c4af5 (patch) | |
tree | f03d967ef86b66e97d25b49f1891c11975b9d615 /include/git2/commit.h | |
parent | 8ba0ff69725251fa375520d9c69c8a053725c4b6 (diff) | |
download | libgit2-f094f9052fba43707cb5662a362511eeea4c4af5.tar.gz |
Add raw header access to commit API
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r-- | include/git2/commit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/commit.h b/include/git2/commit.h index 544d21d87..fc0551be1 100644 --- a/include/git2/commit.h +++ b/include/git2/commit.h @@ -130,6 +130,14 @@ GIT_EXTERN(const git_signature *) git_commit_committer(const git_commit *commit) GIT_EXTERN(const git_signature *) git_commit_author(const git_commit *commit); /** + * Get the full raw text of the commit header. + * + * @param commit a previously loaded commit + * @return the header text of the commit + */ +GIT_EXTERN(const char *) git_commit_raw_header(const git_commit *commit); + +/** * Get the tree pointed to by a commit. * * @param tree_out pointer where to store the tree object |