summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-04-10 22:26:24 +0400
committerdmitry kim <jason@nichego.net>2008-04-10 22:26:24 +0400
commitb75db5a36c04b0def01673b1ffabce40438a2b9f (patch)
tree9c6c96e5e0a87cbcdd65bad28fcbc24763cc3cf1 /bin
parent27ef2c2c2ba14f02c63ee0d74aba4ff2a470dfa6 (diff)
+ show relative timestamp in git version
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/rbot b/bin/rbot
index ed6b57f8..37b73e50 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -75,9 +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"`.split("\n")
- rev << git_out.first
- if git_out.last.match(/^git-svn-id: \S+@(\d+)/)
+ git_out = `git log -1 --pretty=format:"%h%n%b%n%cr"`.split("\n")
+ rev << git_out.first << ' [' << git_out.last << ']'
+ if git_out[1].match(/^git-svn-id: \S+@(\d+)/)
rev << "(svn #{$1})"
end
rev << ", local changes" if changed