From 77bab64a1249aaa87d724cc5076f3080f7a0be25 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 29 May 2022 09:28:16 +0200 Subject: [PATCH] Message for updating the working copy --- lib/format_staged.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/format_staged.rb b/lib/format_staged.rb index 804dbf3..4bbcd86 100644 --- a/lib/format_staged.rb +++ b/lib/format_staged.rb @@ -95,6 +95,8 @@ class FormatStaged end def patch_working_file(file, new_hash) + info "Updating working copy" + 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}"