summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
authorMark Probst <[email protected]>2015-03-04 15:35:35 -0800
committerMark Probst <[email protected]>2015-03-04 15:53:00 -0800
commit9eae50f29a69fa47cecf3cf4dfb032414cf27a50 (patch)
tree58652052be2848d110ff3c894517452577f44a95 /commit.go
parent45d88ca5f4e69c9a07b867ec73da27f29bd77388 (diff)
Add commit summary getter
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go4
1 files changed, 4 insertions, 0 deletions
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