summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-07-01 15:41:01 -0700
committerVicent Marti <tanoku@gmail.com>2013-07-10 20:50:32 +0200
commitf094f9052fba43707cb5662a362511eeea4c4af5 (patch)
treef03d967ef86b66e97d25b49f1891c11975b9d615 /include/git2/commit.h
parent8ba0ff69725251fa375520d9c69c8a053725c4b6 (diff)
downloadlibgit2-f094f9052fba43707cb5662a362511eeea4c4af5.tar.gz
Add raw header access to commit API
Diffstat (limited to 'include/git2/commit.h')
-rw-r--r--include/git2/commit.h8
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