summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/vcs.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 4acc7211be..620ac1bfeb 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -660,14 +660,12 @@ class VCS
end
def format_changelog(path, arg)
- cmd = %W"#{COMMAND} log --topo-order --no-notes"
- cmd << "--format=%x00%an%n%at%n%B"
+ cmd = %W"#{COMMAND} log --topo-order --no-notes -z --format=%an%n%at%n%B"
cmd.concat(arg)
open(path, 'w') do |w|
sep = "-"*72
w.puts sep
cmd_pipe(cmd) do |r|
- r.getc # skip first NUL
while s = r.gets("\0")
s.chomp!("\0")
author, time, s = s.split("\n", 3)