[前][次][番号順一覧][スレッド一覧]

ruby-changes:37209

From: nobu <ko1@a...>
Date: Sat, 17 Jan 2015 09:18:00 +0900 (JST)
Subject: [ruby-changes:37209] nobu:r49290 (trunk): vcs.rb: fake string for branch names

nobu	2015-01-17 09:17:36 +0900 (Sat, 17 Jan 2015)

  New Revision: 49290

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49290

  Log:
    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.

  Modified files:
    trunk/tool/vcs.rb
Index: tool/vcs.rb
===================================================================
--- tool/vcs.rb	(revision 49289)
+++ tool/vcs.rb	(revision 49290)
@@ -208,8 +208,10 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/vcs.rb#L208
       [last, changed, modified]
     end
 
+    Branch = Struct.new(:to_str)
+
     def branch(name)
-      name
+      Branch.new(name)
     end
 
     alias tag branch

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]