We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c58080 commit 3d1cde8Copy full SHA for 3d1cde8
git-fmt-diff
@@ -393,13 +393,17 @@ process_file () (
393
return
394
fi
395
396
+ fmtcmd="$tempdir"/fmtcmd
397
+ rm_list__push "$fmtcmd"
398
+ echo "$formatter" > "$fmtcmd"
399
+
400
# shellcheck disable=SC2086
- eval "sh -c '$formatter' < '$b_raw' > '$b_fmt' $g_fmtprg_devnull"
401
+ eval "sh '$fmtcmd' < '$b_raw' > '$b_fmt' $g_fmtprg_devnull"
402
rm_list__push "$b_fmt"
403
404
git diff -s "$b_raw" "$b_fmt" && return
405
- eval "sh -c '$formatter' < '$a_raw' > '$a_fmt' $g_fmtprg_devnull"
406
+ eval "sh '$fmtcmd' < '$a_raw' > '$a_fmt' $g_fmtprg_devnull"
407
rm_list__push "$a_fmt"
408
409
chng_fmt="$(git_changes_formatted \
0 commit comments