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

file2lastrev.rb: no ellipsis shorter names

* tool/file2lastrev.rb (revision_h): do not truncate and ellipsis
  names shorter than the limit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-01-17 15:03:07 +00:00
parent f59ce53f26
commit f8f2b0f165

View file

@ -62,7 +62,7 @@ when :revision_h
if branch
e = '..'
limit = 16
name = branch.sub(/\A(.{0,#{limit-e.size}}).{#{e.size+1},}/o) {$1+e}
name = branch.sub(/\A(.{#{limit-e.size}}).{#{e.size+1},}/o) {$1+e}
puts "#define RUBY_BRANCH_NAME #{name.dump}"
end
when :doxygen