1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Updated comment of VCS#get_revisions [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2019-08-30 10:13:45 +09:00
parent 43ab88c737
commit 1191049436
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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)