[前][次][番号順一覧][スレッド一覧]

ruby-changes:65191

From: Nobuyoshi <ko1@a...>
Date: Tue, 9 Feb 2021 00:07:29 +0900 (JST)
Subject: [ruby-changes:65191] dfff1df95c (master): vcs.rb: update the given option to VCS.detect by keyword arguments

https://git.ruby-lang.org/ruby.git/commit/?id=dfff1df95c

From dfff1df95ca4f678e926d4e22092697d0eb91e73 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 8 Feb 2021 23:56:19 +0900
Subject: vcs.rb: update the given option to VCS.detect by keyword arguments

---
 tool/lib/vcs.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 00b6cb8..b146dfe 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -65,7 +65,8 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L65
     @@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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]