1
0
mirror of https://github.com/danog/gift.git synced 2024-11-27 04:14:42 +01:00

add Commit#toJSON

This commit is contained in:
sentientwaffle 2012-02-16 15:00:47 -07:00
parent 0e5b0f23c5
commit e322373dca

View File

@ -17,6 +17,10 @@ module.exports = class Commit
new Commit @repo, parent new Commit @repo, parent
toJSON: ->
{@id, @author, @authored_date, @committer, @committed_date, @message}
# Public: Find the matching commits. # Public: Find the matching commits.
# #
# callback - Receives `(err, commits)` # callback - Receives `(err, commits)`