diff options
author | dmitry kim <jason@nichego.net> | 2008-04-11 02:30:59 +0400 |
---|---|---|
committer | dmitry kim <jason@nichego.net> | 2008-04-11 02:30:59 +0400 |
commit | ac10728090f28a34593da1d125ebf0811d7d9691 (patch) | |
tree | 23c17d2c1cd6f1706700e7f87e24e98160f6f6e4 /bin/rbot | |
parent | 56fe4203025b373ce9c6d29b90a28533964e8287 (diff) |
* recalculate the relative version timestamp on !version
Diffstat (limited to 'bin/rbot')
-rwxr-xr-x | bin/rbot | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -75,8 +75,9 @@ if $version =~ /git/ branch = $1.dup || "unknown" changed = git_out.match(/^# Change(.*)\n/) rev = "revision " - git_out = `git log -1 --pretty=format:"%h%n%b%n%cr"`.split("\n") - rev << git_out.first << ' [' << git_out.last << ']' + git_out = `git log -1 --pretty=format:"%h%n%b%n%ct"`.split("\n") + rev << git_out.first + $version_timestamp = git_out.last.to_i if git_out[1].match(/^git-svn-id: \S+@(\d+)/) rev << "(svn #{$1})" end |