From d594c5239ef31b0f721c495c6093b0cb7792d8e5 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Wed, 25 May 2022 21:03:26 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20dump=20patch=20in=20verbose=20m?= =?UTF-8?q?ode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/format_staged.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/format_staged.rb b/lib/format_staged.rb index df5c058..2201c21 100644 --- a/lib/format_staged.rb +++ b/lib/format_staged.rb @@ -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}"