diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-17 00:17:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-17 00:17:36 +0000 |
commit | 84c181a6e3d3be8199f5867880bb9630a67b5c34 (patch) | |
tree | e178548fa880fff0e029268a3d35459d4a8a67e5 /tool | |
parent | b20b9f67c5db0fecc1d7341c192c0b6749a35285 (diff) | |
download | ruby-84c181a6e3d3be8199f5867880bb9630a67b5c34.tar.gz |
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
Diffstat (limited to 'tool')
-rw-r--r-- | tool/vcs.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb index 66d276450e..d7559a7406 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -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 |