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

vcs.rb: fake string for branch names

* tool/vcs.rb (VCS::GIT#branch): make fake string for branch names
  to suppress expanding as a path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-01-17 00:17:36 +00:00
parent b20b9f67c5
commit 84c181a6e3

View file

@ -208,8 +208,10 @@ class VCS
[last, changed, modified]
end
Branch = Struct.new(:to_str)
def branch(name)
name
Branch.new(name)
end
alias tag branch