ruby-changes:57000
From: Nobuyoshi <ko1@a...>
Date: Tue, 13 Aug 2019 12:25:53 +0900 (JST)
Subject: [ruby-changes:57000] Nobuyoshi Nakada: 75d9fa8b07 (master): Detect VCS from the current directory by default [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=75d9fa8b07 From 75d9fa8b079c27c66ac1eabfae366df465244fc4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 13 Aug 2019 12:24:55 +0900 Subject: Detect VCS from the current directory by default [ci skip] diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 0a3d54c..9a90a04 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -127,7 +127,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L127 @@dirs << [dir, self, pred] end - def self.detect(path, options = {}, argv = ::ARGV) + def self.detect(path = '.', options = {}, argv = ::ARGV) uplevel_limit = options.fetch(:uplevel_limit, 0) curr = path begin -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/