ruby-changes:65041
From: Nobuyoshi <ko1@a...>
Date: Tue, 26 Jan 2021 10:07:45 +0900 (JST)
Subject: [ruby-changes:65041] 6963e682f8 (master): vcs.rb: support `d` command in log-fix
https://git.ruby-lang.org/ruby.git/commit/?id=6963e682f8 From 6963e682f884d0c4f2972bcc89f69d9b6f756108 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 26 Jan 2021 10:04:12 +0900 Subject: vcs.rb: support `d` command in log-fix --- tool/lib/vcs.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 282ce91..5a33d87 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -597,6 +597,9 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L597 end when %r[^( +)(\d+)i/(.*)/] s[$2.to_i, 0] = "#{$1}#{$3}\n" + when %r[^ +(\d+)(?:,(\d+))?d] + n = $1.to_i + s[n..($2&.to_i || n)] = [] end end s = s.join('') -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/