aboutsummaryrefslogtreecommitdiffstats
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-23 09:36:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-23 09:36:33 +0000
commitaaa123591daef0d562c8ecc640783624d47e2b30 (patch)
tree1c681aece33dcb0c3d362d86f690372b93a359b2 /tool/vcs.rb
parent80000c534c179add12eb91010feaa7b43b6abec1 (diff)
downloadruby-aaa123591daef0d562c8ecc640783624d47e2b30.tar.gz
common.mk: update-man-date
* common.mk (update-man-date): update last date in man pages. * tool/vcs.rb (VCS#modified): returns last modified time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 4c0dcce4b0..e38d1cfc56 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -130,6 +130,11 @@ class VCS
return last, changed, modified, *rest
end
+ def modified(path)
+ last, changed, modified, *rest = get_revisions(path)
+ modified
+ end
+
def relative_to(path)
if path
srcdir = File.realpath(@srcdir)