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

ruby-changes:59901

From: Nobuyoshi <ko1@a...>
Date: Sat, 1 Feb 2020 23:27:27 +0900 (JST)
Subject: [ruby-changes:59901] b68fc08092 (master): Indent ChangeLog contents [ci skip]

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

From b68fc08092c7e41fb4cd34a00a59f2bfe8854720 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 1 Feb 2020 23:11:23 +0900
Subject: Indent ChangeLog contents [ci skip]

Separate each entries more obviously as `page-delimiter' works
fine.

diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index a036d29..63a1b70 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -639,19 +639,21 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L639
         w.print "-*- coding: utf-8 -*-\n\n"
         cmd_pipe(env, cmd, chdir: @srcdir) do |r|
           while s = r.gets("\ncommit ")
+            h, s = s.split(/^$/, 2)
+            h.gsub!(/^(?:Author|Date): /, '  \&')
             if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')
               fix = $1
-              h, s = s.split(/^$/, 2)
               s = s.lines
               fix.each_line do |x|
                 if %r[^ +(\d+)s/(.+)/(.*)/] =~ x
                   s[$1.to_i][$2] = $3
                 end
               end
-              s = [h, s.join('')].join('')
+              s = s.join('')
             end
             s.gsub!(/ +\n/, "\n")
-            w.print s
+            s.sub!(/^Notes:/, '  \&')
+            w.print h, s
           end
         end
       end
-- 
cgit v0.10.2


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

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