1
0
mirror of https://github.com/danog/gift.git synced 2024-11-26 20:04:47 +01:00

add Repo#revert

This commit is contained in:
sentientwaffle 2012-02-18 12:40:34 -07:00
parent ff3161b6fd
commit ac2f2c5962

View File

@ -119,7 +119,7 @@ module.exports = class Repo
# callback - Receives `(err, callback)`
#
status: (callback) ->
return new Status(this, callback)
return Status(this, callback)
# Public: Get the repository's tags.
@ -224,3 +224,7 @@ module.exports = class Repo
remove: (files, callback) ->
files = [files] if _.isString files
@git "rm", {}, files, callback
# Public: Revert the given commit.
revert: (sha, callback) ->
@git "revert", {}, sha, callback