Don’t dump patch in verbose mode

This commit is contained in:
Sven Weidauer 2022-05-25 21:03:26 +02:00
parent 19bea3495c
commit d594c5239e

View file

@ -87,7 +87,7 @@ class FormatStaged
end
def patch_working_file(file, new_hash)
patch = get_output 'git', 'diff', file.dst_hash, new_hash, lines: false
patch = get_output 'git', 'diff', file.dst_hash, new_hash, lines: false, silent: true
patch.gsub! "a/#{file.dst_hash}", "a/#{file.src_path}"
patch.gsub! "b/#{new_hash}", "b/#{file.src_path}"