mirror of
https://github.com/danog/gift.git
synced 2024-11-30 04:19:37 +01:00
commit
d28c131c55
@ -360,11 +360,15 @@ module.exports = class Repo
|
||||
# Public: Remove files from the index.
|
||||
#
|
||||
# files - Array of String paths; or a String path.
|
||||
# options - Object (optional).
|
||||
# "recursive" - Boolean
|
||||
# callback - Receives `(err)`.
|
||||
#
|
||||
remove: (files, callback) ->
|
||||
remove: (files, options, callback) ->
|
||||
[options, callback] = [callback, options] if !callback
|
||||
options ?= {}
|
||||
files = [files] if _.isString files
|
||||
@git "rm", {}, files, callback
|
||||
@git "rm", options, files, callback
|
||||
|
||||
# Public: Revert the given commit.
|
||||
revert: (sha, callback) ->
|
||||
|
Loading…
Reference in New Issue
Block a user