diff --git a/commit.go b/commit.go index caaff74..57e1a77 100644 --- a/commit.go +++ b/commit.go @@ -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