git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/4] rebase: support --whitespace=fix with --interactive

From
AGAlessio Attilio via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 30, 2026, 00:01 UTC
Message-ID
<pull.2511.git.git.1795996885.gitgitgadget@gmail.com>

The apply backend implements --whitespace=fix through git apply, which prevents users from combining it with interactive rebases and other merge-backend features. Teach merge replay to compare whitespace-normalized records, then fix only lines introduced by replay using the path's whitespace rules. Keep other whitespace actions on the apply backend.

Tests cover interactive replay, attributes, existing whitespace, added files, end-of-file handling, and unsupported actions.

Closes gitgitgadget/git#1472
Alessio Attilio (4):
  xdiff: support transformed records in merge matching
  merge-ort: fix whitespace in replayed changes
  rebase: route whitespace fixes through the selected backend
  rebase: test whitespace fixes with the merge backend
 Documentation/git-rebase.adoc          |   6 +-
 builtin/rebase.c                       |  55 +++++++-
 contrib/completion/git-completion.bash |   2 +-
 merge-ll.c                             | 182 ++++++++++++++++++++++++-
 merge-ll.h                             |   5 +
 merge-ort.c                            |  52 +++++++
 merge-ort.h                            |   1 +
 t/t3417-rebase-whitespace-fix.sh       | 163 ++++++++++++++++++++++
 t/t3422-rebase-incompatible-options.sh |  17 ++-
 xdiff/xdiff.h                          |   4 +
 xdiff/xmerge.c                         |  16 +--
 xdiff/xprepare.c                       |  57 ++++++--
 xdiff/xtypes.h                         |   2 +
 xdiff/xutils.c                         |  14 ++
 xdiff/xutils.h                         |   2 +
 15 files changed, 547 insertions(+), 31 deletions(-)
base-commit: acba8bf9753134d9bde89f94369f775838a8c5fe
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2511%2Fkairosci%2Fds%2Frebase-whitespace-fix-merge-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2511/kairosci/ds/rebase-whitespace-fix-merge-v1
Pull-Request: https://github.com/git/git/pull/2511
-- 
gitgitgadget
Next: Alessio Attilio via GitGitGadget
Message 1 of 5 in “rebase: support --whitespace=fix with --interactive”
  1. 0/4 rebase: support --whitespace=fix with --interactiveAlessio Attilio via GitGitGadget, Nov 30, 2026
  2. 1/4 xdiff: support transformed records in merge matchingAlessio Attilio via GitGitGadget, Nov 30, 2026
  3. 2/4 merge-ort: fix whitespace in replayed changesAlessio Attilio via GitGitGadget, Nov 30, 2026
  4. 3/4 rebase: route whitespace fixes through the selected backendAlessio Attilio via GitGitGadget, Nov 30, 2026
  5. 4/4 rebase: test whitespace fixes with the merge backendAlessio Attilio via GitGitGadget, Nov 30, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.