Add commit summary getter

This commit is contained in:
Mark Probst 2015-03-04 15:35:35 -08:00
parent 45d88ca5f4
commit 9eae50f29a
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ func (c Commit) Message() string {
return C.GoString(C.git_commit_message(c.cast_ptr))
}
func (c Commit) Summary() string {
return C.GoString(C.git_commit_summary(c.cast_ptr))
}
func (c Commit) Tree() (*Tree, error) {
var ptr *C.git_tree