Fix VCS::GIT#branch_beginning to search since the last relase

The ChangeLog in ruby-4.0.0 did not contain entries for 3.5.0.
This commit is contained in:
Nobuyoshi Nakada 2026-01-11 15:12:58 +09:00
parent acd0c68a07
commit 463a806fb1
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -448,9 +448,11 @@ class VCS
end
def branch_beginning(url)
cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H
files = %w[version.h include/ruby/version.h]
year = cmd_read(%W[ #{COMMAND} log -n1 --format=%cd --date=format:%Y #{url} --] + files).to_i
cmd_read(%W[ #{COMMAND} log --format=format:%H --reverse --since=#{year-1}-12-25
--author=matz --committer=matz --grep=started\\.$
#{url.to_str} -- version.h include/ruby/version.h])
#{url} --] + files)[/.*/]
end
def export_changelog(url = '@', from = nil, to = nil, _path = nil, path: _path, base_url: true)