vcs.rb: include commit info in ChangeLog
This commit is contained in:
parent
1def8a6004
commit
ccd7b7ab9a
Notes:
git
2021-01-23 10:08:19 +09:00
@ -562,7 +562,7 @@ class VCS
|
|||||||
|
|
||||||
def format_changelog(path, arg)
|
def format_changelog(path, arg)
|
||||||
env = {'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}
|
env = {'TZ' => 'JST-9', 'LANG' => 'C', 'LC_ALL' => 'C'}
|
||||||
cmd = %W"#{COMMAND} log --format=medium --notes=commits --notes=log-fix --topo-order --no-merges"
|
cmd = %W"#{COMMAND} log --format=fuller --notes=commits --notes=log-fix --topo-order --no-merges"
|
||||||
date = "--date=iso-local"
|
date = "--date=iso-local"
|
||||||
unless system(env, *cmd, date, chdir: @srcdir, out: NullDevice, exception: false)
|
unless system(env, *cmd, date, chdir: @srcdir, out: NullDevice, exception: false)
|
||||||
date = "--date=iso"
|
date = "--date=iso"
|
||||||
@ -574,7 +574,7 @@ class VCS
|
|||||||
cmd_pipe(env, cmd, chdir: @srcdir) do |r|
|
cmd_pipe(env, cmd, chdir: @srcdir) do |r|
|
||||||
while s = r.gets("\ncommit ")
|
while s = r.gets("\ncommit ")
|
||||||
h, s = s.split(/^$/, 2)
|
h, s = s.split(/^$/, 2)
|
||||||
h.gsub!(/^(?:Author|Date): /, ' \&')
|
h.gsub!(/^(?:(?:Author|Commit)(?:Date)?|Date): /, ' \&')
|
||||||
if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')
|
if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')
|
||||||
fix = $1
|
fix = $1
|
||||||
s = s.lines
|
s = s.lines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user