summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-01 23:16:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-01 23:16:47 +0900
commit7ff2bfed92f8017184963eaac13e75cfb5ce5d4a (patch)
tree7937be8e6ef623ad300ee611cbdbb85d955fa337 /tool/vcs.rb
parentf2769ae2c9f5c5a902584282f1e512437db1f395 (diff)
Alias "master" and "trunk"
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 4554da3..dd6162c 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -326,6 +326,7 @@ class VCS
def trunk
url + "trunk"
end
+ alias master trunk
def branch_list(pat)
IO.popen(%W"#{COMMAND} ls #{branch('')}") do |f|
@@ -507,9 +508,10 @@ class VCS
alias tag branch
- def trunk
- branch("trunk")
+ def master
+ branch("master")
end
+ alias trunk master
def stable
cmd = %W"#{COMMAND} for-each-ref --format=\%(refname:short) refs/heads/ruby_[0-9]*"