diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-07 17:25:09 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-07 17:25:09 -0700 |
commit | 898d31b2ffa0383d62bf28c4fa49bc74aa92fde5 (patch) | |
tree | 7bbcb35c47335071bdb66cc112a230c33a0a7759 | |
parent | 25faf9f74637db03f0e5e1bcd1785d74d7ff6309 (diff) | |
download | clogger-898d31b2ffa0383d62bf28c4fa49bc74aa92fde5.tar.gz |
-rw-r--r-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ task :history do tags = `git tag -l`.split(/\n/).grep(/^v/).reverse timefmt = '%Y-%m-%d %H:%M UTC' tags.each do |tag| - header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/) + header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3) tagger = header.split(/\n/).grep(/^tagger /).first.split(/\s/) time = Time.at(tagger[-2].to_i).utc puts "=== #{tag.sub(/^v/, '')} / #{time.strftime(timefmt)}" |