From f8f2b0f165677fcf34f9eb8a4134756449ee1970 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 17 Jan 2015 15:03:07 +0000 Subject: 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 --- tool/file2lastrev.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/file2lastrev.rb') 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 -- cgit v1.2.3