summaryrefslogtreecommitdiff
path: root/tool/file2lastrev.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-02 12:18:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-02 12:38:31 +0900
commit3475b661607e6d2c72460ea381ee856726128259 (patch)
treeb002bffcfa967cc1752a5fc91e9c1dee8aa04bfc /tool/file2lastrev.rb
parentac06951c31c59781951a70788e4b0de2aa3d481c (diff)
downloadruby-3475b661607e6d2c72460ea381ee856726128259.tar.gz
file2lastrev.rb: try to overwrite the found revision.h as before
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 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