From: Alessio Attilio via GitGitGadget Date: Mon, 30 Nov 2026 00:01:24 GMT Subject: [PATCH 3/4] rebase: route whitespace fixes through the selected backend Message-ID: <46631ec7de84667a7047fc4401b2f156ed64b2cb.1795996885.git.gitgitgadget@gmail.com> In-Reply-To: From: Alessio Attilio --whitespace has historically implied the apply backend because its value was forwarded directly to git apply. With whitespace=fix available in the merge backend, keep apply-specific actions on that backend while allowing fix to reach merge and interactive rebases. Validate the action before selecting a backend, pass fix to the merge strategy when needed, and document the backend-specific behavior. Keep other whitespace actions unsupported with the merge backend. Update the incompatibility tests so the newly supported combinations are expected to succeed. Signed-off-by: Alessio Attilio --- Documentation/git-rebase.adoc | 6 +-- builtin/rebase.c | 55 +++++++++++++++++++++++--- contrib/completion/git-completion.bash | 2 +- t/t3422-rebase-incompatible-options.sh | 17 +++++++- 4 files changed, 69 insertions(+), 11 deletions(-) diff --git a/Documentation/git-rebase.adoc b/Documentation/git-rebase.adoc index 2f0c6fbbd1..1d4c729e3f 100644 --- a/Documentation/git-rebase.adoc +++ b/Documentation/git-rebase.adoc @@ -466,9 +466,9 @@ merge backend;; other side had no changes that conflicted. --whitespace=