mirror of
https://github.com/danog/gift.git
synced 2024-11-30 04:19:37 +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
|
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)`
|
||||||
|
Loading…
Reference in New Issue
Block a user