diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-26 10:04:12 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-26 10:04:12 +0900 |
commit | 6963e682f884d0c4f2972bcc89f69d9b6f756108 (patch) | |
tree | c3a2ea3714dcdd4098a1a01367932d1c0ec39005 /tool | |
parent | a56760b908fb89dbcf4bea5f6d8f6576bc88e1d2 (diff) | |
download | ruby-6963e682f884d0c4f2972bcc89f69d9b6f756108.tar.gz |
vcs.rb: support `d` command in log-fix
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/vcs.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 282ce91dd3..5a33d87411 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -597,6 +597,9 @@ class VCS 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('') |