diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-08-26 09:44:49 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-08-26 09:45:45 +0000 |
commit | ba0f2548df4b81288cd5683fe9c8a945b91e84db (patch) | |
tree | 952c0b25ff9fdf7729e3d9f6c7bcf7abd0e02875 | |
parent | 7c3f3053dc93dbde03fb1f2c715676ad296ededb (diff) | |
download | dtas-ba0f2548df4b81288cd5683fe9c8a945b91e84db.tar.gz |
order from most recent to oldest, and preserve non-numeric characters
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -22,8 +22,8 @@ if ! File.exist?(manifest) || File.stat(manifest).mtime < gitidx.mtime end end File.open("NEWS", "w") do |fp| - `git tag -l`.split(/\n/).each do |tag| - %r{\Av([\d\.]+)} =~ tag or next + `git tag -l`.split(/\n/).reverse.each do |tag| + %r{\Av(.+)} =~ tag or next version = $1 header, subject, body = `git cat-file tag #{tag}`.split(/\n\n/, 3) header = header.split(/\n/) |