mirror of
https://github.com/danog/gift.git
synced 2024-11-26 20:04:47 +01:00
add Commit#toJSON
This commit is contained in:
parent
0e5b0f23c5
commit
e322373dca
@ -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)`
|
||||
|
Loading…
Reference in New Issue
Block a user