aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-30 10:13:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-30 11:23:21 +0900
commit1191049436556955893d7f6037eb626e6f51a004 (patch)
treec46b08c5ea8a5369b9b26b0a5ddce6169d5f10b9
parent43ab88c73706f4ffca2d01b149f5d7092b46000b (diff)
downloadruby-1191049436556955893d7f6037eb626e6f51a004.tar.gz
Updated comment of VCS#get_revisions [ci skip]
-rw-r--r--tool/lib/vcs.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 45cd91078f..db8b91e348 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -182,8 +182,11 @@ class VCS
NullDevice = defined?(IO::NULL) ? IO::NULL :
%w[/dev/null NUL NIL: NL:].find {|dev| File.exist?(dev)}
- # return a pair of strings, the last revision and the last revision in which
- # +path+ was modified.
+ # returns
+ # * the last revision of the current branch
+ # * the last revision in which +path+ was modified
+ # * the last modified time of +path+
+ # * the last commit title since the latest upstream
def get_revisions(path)
if self.class.local_path?(path)
path = relative_to(path)