summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2021-01-23 09:24:43 +0900
committerNobuyoshi Nakada <[email protected]>2021-01-23 10:07:49 +0900
commitccd7b7ab9ac7b2adb427c52f32766d4e0a474de5 ()
tree36924ab5c6e5e19e1e44a7ec008dd35a449a41d8 /tool/lib/vcs.rb
parent1def8a60045bad5366740f1cb7a10bd1c85460d5 (diff)
vcs.rb: include commit info in ChangeLog
Notes: Merged: https://.com/ruby/ruby/pull/4109
-rw-r--r--tool/lib/vcs.rb4
1 files changed, 2 insertions, 2 deletions
@@ -562,7 +562,7 @@ class VCS
def format_changelog(path, arg)
env = {'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}
- cmd = %W"#{COMMAND} log --format=medium --notes=commits --notes=log-fix --topo-order --no-merges"
date = "--date=iso-local"
unless system(env, *cmd, date, chdir: @srcdir, out: NullDevice, exception: false)
date = "--date=iso"
@@ -574,7 +574,7 @@ class VCS
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
s = s.lines