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:
parent
ff3161b6fd
commit
ac2f2c5962
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user