commit | 53594d7581617dbae7bb5960b4ac5f0ff513c184 | [log] [tgz] |
---|---|---|
author | Carlos MartÃn Nieto <carlosmn@github.com> | Mon Oct 03 02:54:48 2016 -0700 |
committer | GitHub <noreply@github.com> | Mon Oct 03 02:54:48 2016 -0700 |
tree | 6e424a6a0ef8568b581f4342f98cb9df7954c9fa | |
parent | 8eb8fa3725d8d857c58fcb0b7d64a85d8b7bebdc [diff] | |
parent | d2b8c99ba7169a312f317e1222af4a7b561e377b [diff] |
Merge pull request #345 from kdambekalns/commit-message-raw Add method to fetch raw commit message
diff --git a/commit.go b/commit.go index 6830da3..07b7c37 100644 --- a/commit.go +++ b/commit.go
@@ -22,6 +22,10 @@ return C.GoString(C.git_commit_message(c.cast_ptr)) } +func (c Commit) RawMessage() string { + return C.GoString(C.git_commit_message_raw(c.cast_ptr)) +} + func (c Commit) Summary() string { return C.GoString(C.git_commit_summary(c.cast_ptr)) }