ruby-changes:57494
From: Nobuyoshi <ko1@a...>
Date: Tue, 3 Sep 2019 00:34:21 +0900 (JST)
Subject: [ruby-changes:57494] d83ade1db5 (master): Use -z option for git-log
https://git.ruby-lang.org/ruby.git/commit/?id=d83ade1db5 From d83ade1db59a21b675b6386b94b56eabb90ae83e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 2 Sep 2019 23:42:21 +0900 Subject: Use -z option for git-log diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 4acc721..620ac1b 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -660,14 +660,12 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L660 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/