From 836e691f1dfe5fb448055c3c22f33bac8431620f Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Fri, 21 Dec 2012 11:45:44 +0100 Subject: Replace ChangeLog generator --- Rakefile | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Rakefile b/Rakefile index 6900abf..008d2f2 100644 --- a/Rakefile +++ b/Rakefile @@ -50,20 +50,7 @@ end desc "Generate a ChangeLog" task :changelog do - File.open("ChangeLog", "w") { |out| - `git log -z`.split("\0").map { |chunk| - author = chunk[/Author: (.*)/, 1].strip - date = chunk[/Date: (.*)/, 1].strip - desc, detail = $'.strip.split("\n", 2) - detail ||= "" - detail = detail.gsub(/.*darcs-hash:.*/, '') - detail.rstrip! - out.puts "#{date} #{author}" - out.puts " * #{desc.strip}" - out.puts detail unless detail.empty? - out.puts - } - } + sh "git log --format='%ad %an <%ae>%n%w(79,2,4)* %s%n%n%w(76,4,4)%b' |grep -v darcs-hash: |cat -s >ChangeLog" end -- cgit 1.4.1