1
0
mirror of https://github.com/danog/gift.git synced 2024-11-30 04:19:37 +01:00

Merge pull request #24 from MoOx/master

Add git rm options
This commit is contained in:
Luke Plaster 2014-04-25 16:50:07 +02:00
commit d28c131c55

View File

@ -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) ->