Message for updating the working copy

This commit is contained in:
Sven Weidauer 2022-05-29 09:28:16 +02:00
parent 4fea7d525e
commit 77bab64a12

View file

@ -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}"