Skip to content

Commit 463a806

Browse files
committed
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.
1 parent acd0c68 commit 463a806

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tool/lib/vcs.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,11 @@ def export(revision, url, dir, keep_temp = false)
448448
end
449449

450450
def branch_beginning(url)
451-
cmd_read(%W[ #{COMMAND} log -n1 --format=format:%H
451+
files = %w[version.h include/ruby/version.h]
452+
year = cmd_read(%W[ #{COMMAND} log -n1 --format=%cd --date=format:%Y #{url} --] + files).to_i
453+
cmd_read(%W[ #{COMMAND} log --format=format:%H --reverse --since=#{year-1}-12-25
452454
--author=matz --committer=matz --grep=started\\.$
453-
#{url.to_str} -- version.h include/ruby/version.h])
455+
#{url} --] + files)[/.*/]
454456
end
455457

456458
def export_changelog(url = '@', from = nil, to = nil, _path = nil, path: _path, base_url: true)

0 commit comments

Comments
 (0)