diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-17 15:03:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-01-17 15:03:07 +0000 |
commit | f8f2b0f165677fcf34f9eb8a4134756449ee1970 (patch) | |
tree | 1d0feb1379d6901c71468dfba0dd22ceb6efdf28 | |
parent | f59ce53f265dd2b2ada018a911d917a3eaeace99 (diff) | |
download | ruby-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
-rwxr-xr-x | tool/file2lastrev.rb | 2 |
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 |