1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Limit ChangeLog entries

Since the previous release date, when the starting message is not
found.
This commit is contained in:
Nobuyoshi Nakada 2019-08-26 18:21:04 +09:00
parent 972222c039
commit 48f1a38f23
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -572,9 +572,14 @@ class VCS
unless $?.success?
raise "need notes/commits tree; run `git fetch origin refs/notes/commits:refs/notes/commits` in the repository"
end
range = [from, (to || 'HEAD')].compact.join('^..')
cmd_pipe({'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'},
%W"#{COMMAND} log --format=medium --notes=commits --date=iso-local --topo-order #{range}", "rb") do |r|
cmd = %W"#{COMMAND} log --format=medium --notes=commits --date=iso-local --topo-order"
to ||= 'HEAD'
if from
cmd.push("#{from}^..#{to}")
else
cmd.push("--since=25 Dec 00:00:00", to)
end
cmd_pipe({'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}, cmd, "rb") do |r|
format_changelog(r, path)
end
end