summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
diff options
context:
space:
mode:
-rw-r--r--tool/lib/vcs.rb8
1 files changed, 5 insertions, 3 deletions
@@ -639,19 +639,21 @@ class VCS
w.print "-*- coding: utf-8 -*-\n\n"
cmd_pipe(env, cmd, chdir: @srcdir) do |r|
while s = r.gets("\ncommit ")
if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')
fix = $1
- h, s = s.split(/^$/, 2)
s = s.lines
fix.each_line do |x|
if %r[^ +(\d+)s/(.+)/(.*)/] =~ x
s[$1.to_i][$2] = $3
end
end
- s = [h, s.join('')].join('')
end
s.gsub!(/ +\n/, "\n")
- w.print s
end
end
end