aboutsummaryrefslogtreecommitdiffstats
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-17 15:03:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-17 15:03:07 +0000
commitf8f2b0f165677fcf34f9eb8a4134756449ee1970 (patch)
tree1d0feb1379d6901c71468dfba0dd22ceb6efdf28 /tool/file2lastrev.rb
parentf59ce53f265dd2b2ada018a911d917a3eaeace99 (diff)
downloadruby-f8f2b0f165677fcf34f9eb8a4134756449ee1970.tar.gz
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
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-xtool/file2lastrev.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb
index 9202e8d637..5117f0a51f 100755
--- a/tool/file2lastrev.rb
+++ b/tool/file2lastrev.rb
@@ -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