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:
parent
b20b9f67c5
commit
84c181a6e3
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue