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 :
|
NullDevice = defined?(IO::NULL) ? IO::NULL :
|
||||||
%w[/dev/null NUL NIL: NL:].find {|dev| File.exist?(dev)}
|
%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
|
# returns
|
||||||
# +path+ was modified.
|
# * 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)
|
def get_revisions(path)
|
||||||
if self.class.local_path?(path)
|
if self.class.local_path?(path)
|
||||||
path = relative_to(path)
|
path = relative_to(path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue