mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vcs.rb: update the given option to VCS.detect by keyword arguments
This commit is contained in:
parent
a0faad38ce
commit
dfff1df95c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue