diff --git a/src/commit.coffee b/src/commit.coffee index 56e5973..35c4ac6 100644 --- a/src/commit.coffee +++ b/src/commit.coffee @@ -17,6 +17,10 @@ module.exports = class Commit new Commit @repo, parent + toJSON: -> + {@id, @author, @authored_date, @committer, @committed_date, @message} + + # Public: Find the matching commits. # # callback - Receives `(err, commits)`