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:
parent
43ab88c737
commit
1191049436
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue