From 3537c25fceeb22c73fb34abe5cf15944da69abc3 Mon Sep 17 00:00:00 2001 From: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Sun, 17 May 2026 12:36:56 -0400 Subject: [PATCH] fix(resolve): ignore space errs --- bin/git-resolve | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/git-resolve b/bin/git-resolve index c1135e4..a3d15b3 100755 --- a/bin/git-resolve +++ b/bin/git-resolve @@ -9,7 +9,7 @@ git diff --name-only --diff-filter=U --relative -z | # `--quiet` implies `--exit-code` which is incompatible with `--check`; # however, it could be special-cased internally, so it could work # (untested) - if ! git diff --check -- "$f" &>/dev/null; then + if ! git -c core.whitespace='' diff --check -- "$f" &>/dev/null; then printf '%s\0' "$f" fi done | @@ -23,7 +23,7 @@ git diff --name-only --diff-filter=U -z | while IFS= read -r -d '' f; do # WARN: `f` is relative to repo root! # this might be broken - if git diff --check -- "$f"; then + if git -c core.whitespace='' diff --check -- "$f"; then git add -- "$f" fi done