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 972a138 commit 22c687cCopy full SHA for 22c687c
git-fmt-diff
@@ -265,11 +265,15 @@ git_changes_formatted () (
265
266
fmtcng="$tempdir"/fmtcng
267
merge --their "$old" "$old_fmt" "$cur_fmt" > "$fmtcng"
268
- merge --our "$old" "$old_fmt" "$cur" > "$temp"
269
270
- if git diff -s "$fmtcng" "$temp"; then
271
- cat "$cur"
272
- else
+ merge --our "$fmtcng" "$old" "$cur" > "$temp"
+ if ! git diff -s "$fmtcng" "$temp"; then
+ merge --their "$cur" "$fmtcng" "$cur_fmt" > "$temp"
+ merge --their "$cur" "$temp" "$cur_fmt" > "$fmtcng"
273
+ fi
274
+
275
+ merge --our "$old" "$old_fmt" "$cur" > "$temp"
276
277
cat "$fmtcng"
278
fi
279
0 commit comments