vcs.rb: update the given option to VCS.detect by keyword arguments
This commit is contained in:
parent
a0faad38ce
commit
dfff1df95c
@ -65,7 +65,8 @@ class VCS
|
||||
@@dirs << [dir, self, pred]
|
||||
end
|
||||
|
||||
def self.detect(path = '.', options = {}, parser = nil)
|
||||
def self.detect(path = '.', options = {}, parser = nil, **opts)
|
||||
options.update(opts)
|
||||
uplevel_limit = options.fetch(:uplevel_limit, 0)
|
||||
curr = path
|
||||
begin
|
||||
|
Loading…
x
Reference in New Issue
Block a user