diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-02 12:18:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-02 12:38:31 +0900 |
commit | 3475b661607e6d2c72460ea381ee856726128259 (patch) | |
tree | b002bffcfa967cc1752a5fc91e9c1dee8aa04bfc /tool/file2lastrev.rb | |
parent | ac06951c31c59781951a70788e4b0de2aa3d481c (diff) | |
download | ruby-3475b661607e6d2c72460ea381ee856726128259.tar.gz |
file2lastrev.rb: try to overwrite the found revision.h as before
Diffstat (limited to 'tool/file2lastrev.rb')
-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 a2b639a426..48b8a1ae99 100755 --- a/tool/file2lastrev.rb +++ b/tool/file2lastrev.rb @@ -90,7 +90,7 @@ formatter = ok = true (ARGV.empty? ? [nil] : ARGV).each do |arg| begin - @output.write(formatter[*vcs.get_revisions(arg)]+"\n") + @output.write(formatter[*vcs.get_revisions(arg)]+"\n", overwrite: true) rescue => e warn "#{File.basename(Program)}: #{e.message}" ok = false |