diff options
Diffstat (limited to 'tool/file2lastrev.rb')
-rwxr-xr-x | tool/file2lastrev.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/file2lastrev.rb b/tool/file2lastrev.rb index 5117f0a51f..100206d270 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -47,7 +47,7 @@ rescue VCS::NotFoundError => e abort "#{File.basename(Program)}: #{e.message}" unless @suppress_not_found else begin - last, changed, modified, branch = vcs.get_revisions(ARGV.shift) + last, changed, modified, branch, title = vcs.get_revisions(ARGV.shift) rescue => e abort "#{File.basename(Program)}: #{e.message}" unless @suppress_not_found exit false @@ -65,6 +65,9 @@ when :revision_h name = branch.sub(/\A(.{#{limit-e.size}}).{#{e.size+1},}/o) {$1+e} puts "#define RUBY_BRANCH_NAME #{name.dump}" end + if title + puts "#define RUBY_LAST_COMMIT_TITLE #{title.dump}" + end when :doxygen puts "r#{changed}/r#{last}" when :modified |