Merge pull request #345 from kdambekalns/commit-message-raw

Add method to fetch raw commit message
This commit is contained in:
Carlos Martín Nieto 2016-10-03 02:54:48 -07:00 committed by GitHub
commit 53594d7581
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ func (c Commit) Message() string {
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))
}