diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-23 09:24:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-01-23 10:07:49 +0900 |
commit | ccd7b7ab9ac7b2adb427c52f32766d4e0a474de5 (patch) | |
tree | 36924ab5c6e5e19e1e44a7ec008dd35a449a41d8 /tool/lib/vcs.rb | |
parent | 1def8a60045bad5366740f1cb7a10bd1c85460d5 (diff) |
vcs.rb: include commit info in ChangeLog
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4109
Diffstat (limited to 'tool/lib/vcs.rb')
-rw-r--r-- | tool/lib/vcs.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 837e5c2c16..50ec627df7 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -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" + cmd = %W"#{COMMAND} log --format=fuller --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): /, ' \&') + h.gsub!(/^(?:(?:Author|Commit)(?:Date)?|Date): /, ' \&') if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '') fix = $1 s = s.lines |