mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
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:
parent
acd0c68a07
commit
463a806fb1
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user