From 7b4aefcb44a7b8bbb371806fae5b6daaf9a7c555 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 23 May 2015 09:36:33 +0000 Subject: 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 --- tool/vcs.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tool') 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) -- cgit v1.2.3