Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package git-delta for openSUSE:Factory 
checked in at 2026-11-30 14:28:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/git-delta (Old)
 and      /work/SRC/openSUSE:Factory/.git-delta.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "git-delta"

Mon Nov 30 14:28:14 2026 rev:21 rq:1401562 version:0.23.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/git-delta/git-delta.changes      2026-11-23 
12:33:03.036070468 +0100
+++ /work/SRC/openSUSE:Factory/.git-delta.new.1340718/git-delta.changes 
2026-11-30 14:31:36.471099111 +0100
@@ -1,0 +2,15 @@
+Mon Nov 30 08:11:45 UTC 2026 - Michael Vetter <[email protected]>
+
+- Update to 0.23.0:
+  * Fix typo in README #2359
+  * Allow TUI to display merge conflicts #2364
+  * Publish to pypi #2369
+  * Fix side-#2371
+  * Merge conflicts (dandavison/delta-gitu#15)
+  * Show a changed line once in difftastic's view when the screen is too narrow
+    for side-by-side (dandavison/delta-gitu#13)
+  * Fix crashes and wrong-file staging/discarding for unusual file names 
(dandavison/delta-gitu#12)
+  * Retain blank lines between hunks (dandavison/delta-gitu#16)
+  * Head each file with its diffstat row when delta's file-style contains 
diffstat
+
+-------------------------------------------------------------------

Old:
----
  git-delta-0.22.0.tar.gz

New:
----
  git-delta-0.23.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ git-delta.spec ++++++
--- /var/tmp/diff_new_pack.sFt4kN/_old  2026-11-30 14:31:37.894159097 +0100
+++ /var/tmp/diff_new_pack.sFt4kN/_new  2026-11-30 14:31:37.896159181 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           git-delta
-Version:        0.22.0
+Version:        0.23.0
 Release:        0
 Summary:        A syntax-highlighter for git and diff output
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.sFt4kN/_old  2026-11-30 14:31:37.946161289 +0100
+++ /var/tmp/diff_new_pack.sFt4kN/_new  2026-11-30 14:31:37.949161416 +0100
@@ -1,6 +1,6 @@
 <services>
   <service name="cargo_vendor" mode="disabled">
-     <param name="srctar">git-delta-0.22.0.tar.gz</param>
+     <param name="srctar">git-delta-0.23.0.tar.gz</param>
      <param name="compression">zst</param>
      <param name="update">true</param>
      <param name="filter">true</param>

++++++ git-delta-0.22.0.tar.gz -> git-delta-0.23.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/.github/workflows/cd.yml 
new/delta-0.23.0/.github/workflows/cd.yml
--- old/delta-0.22.0/.github/workflows/cd.yml   2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/.github/workflows/cd.yml   2026-11-28 19:50:07.000000000 
+0100
@@ -99,6 +99,15 @@
       version: ${{ github.ref_name }}
     secrets: inherit
 
+  publish-to-pypi:
+    needs: ci
+    uses: ./.github/workflows/pypi.yml
+    permissions:
+      contents: read
+      id-token: write
+    with:
+      repository: pypi
+
   publish-to-cargo:
     name: Publishing to Cargo
     runs-on: ubuntu-latest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/.github/workflows/pypi.yml 
new/delta-0.23.0/.github/workflows/pypi.yml
--- old/delta-0.22.0/.github/workflows/pypi.yml 1970-01-01 01:00:00.000000000 
+0100
+++ new/delta-0.23.0/.github/workflows/pypi.yml 2026-11-28 19:50:07.000000000 
+0100
@@ -0,0 +1,123 @@
+name: PyPI
+
+# Builds a wheel per platform, each containing the delta executable, and 
uploads them with an sdist.
+# Both indexes use trusted publishing: PyPI trusts cd.yml (which calls this 
workflow) and TestPyPI
+# trusts this workflow.
+# cd.yml calls this with repository: pypi for release tags; run it manually to 
upload to TestPyPI.
+# Neither index accepts a second upload of the same version, so a TestPyPI 
upload of a version that
+# is already there fails.
+
+on:
+  workflow_call:
+    inputs:
+      repository:
+        type: string
+        required: true
+  workflow_dispatch:
+    inputs:
+      repository:
+        type: choice
+        options: [testpypi]
+        default: testpypi
+
+env:
+  # Build libgit2 from source rather than linking a system libgit2 found by 
pkg-config.
+  LIBGIT2_NO_PKG_CONFIG: 1
+
+jobs:
+  linux:
+    # The manylinux2014 i686 image cannot resolve hostnames on ubuntu-26.04 
(ubuntu-latest).
+    runs-on: ubuntu-24.04
+    strategy:
+      fail-fast: false
+      matrix:
+        include:
+          - { target: x86_64, manylinux: auto, test: true }
+          - { target: aarch64, manylinux: auto }
+          - { target: armv7, manylinux: auto }
+          - { target: i686, manylinux: auto }
+          - { target: x86_64, manylinux: musllinux_1_2 }
+          - { target: aarch64, manylinux: musllinux_1_2 }
+    steps:
+      - uses: actions/checkout@v4
+      - uses: PyO3/maturin-action@v1
+        with:
+          target: ${{ matrix.target }}
+          manylinux: ${{ matrix.manylinux }}
+          args: --release --locked --out dist
+      - uses: astral-sh/[email protected]
+        if: matrix.test
+      - name: Install and run the wheel
+        if: matrix.test
+        run: uvx --from dist/*.whl delta --version
+      - uses: actions/upload-artifact@v4
+        with:
+          name: wheels-linux-${{ matrix.target }}-${{ matrix.manylinux }}
+          path: dist
+
+  macos:
+    runs-on: macos-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        target: [x86_64-apple-darwin, aarch64-apple-darwin]
+    steps:
+      - uses: actions/checkout@v4
+      - uses: PyO3/maturin-action@v1
+        with:
+          target: ${{ matrix.target }}
+          args: --release --locked --out dist
+      # The runner is arm64, so it can run only the aarch64 wheel.
+      - uses: astral-sh/[email protected]
+        if: matrix.target == 'aarch64-apple-darwin'
+      - name: Install and run the wheel
+        if: matrix.target == 'aarch64-apple-darwin'
+        run: uvx --from dist/*.whl delta --version
+      - uses: actions/upload-artifact@v4
+        with:
+          name: wheels-${{ matrix.target }}
+          path: dist
+
+  windows:
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: PyO3/maturin-action@v1
+        with:
+          target: x86_64-pc-windows-msvc
+          args: --release --locked --out dist
+      - uses: astral-sh/[email protected]
+      - name: Install and run the wheel
+        shell: bash
+        run: uvx --from dist/*.whl delta --version
+      - uses: actions/upload-artifact@v4
+        with:
+          name: wheels-x86_64-pc-windows-msvc
+          path: dist
+
+  sdist:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - uses: PyO3/maturin-action@v1
+        with:
+          command: sdist
+          args: --out dist
+      - uses: actions/upload-artifact@v4
+        with:
+          name: sdist
+          path: dist
+
+  upload:
+    needs: [linux, macos, windows, sdist]
+    runs-on: ubuntu-latest
+    # Trusted publishing: the index accepts the job's OIDC token instead of an 
API token.
+    permissions:
+      id-token: write
+    steps:
+      - uses: actions/download-artifact@v4
+        with:
+          path: dist
+          merge-multiple: true
+      - uses: astral-sh/[email protected]
+      - run: uv publish --trusted-publishing always --publish-url ${{ 
inputs.repository == 'testpypi' && 'https://test.pypi.org/legacy/' || 
'https://upload.pypi.org/legacy/' }} dist/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/Cargo.lock new/delta-0.23.0/Cargo.lock
--- old/delta-0.22.0/Cargo.lock 2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/Cargo.lock 2026-11-28 19:50:07.000000000 +0100
@@ -565,9 +565,9 @@
 
 [[package]]
 name = "delta-gitu"
-version = "0.1.27"
+version = "0.1.28"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "bbfda46155bbf8702da5dd4078c3a4544e45674aae1e62ac330340f601ef2cbd"
+checksum = "7940def18888e151b700674daaf9412d8a0c8c903e3c50e23783473af0f3ff9f"
 dependencies = [
  "anstyle-parse",
  "arboard",
@@ -973,7 +973,7 @@
 
 [[package]]
 name = "git-delta"
-version = "0.22.0"
+version = "0.23.0"
 dependencies = [
  "ansi_colours",
  "ansi_term",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/Cargo.toml new/delta-0.23.0/Cargo.toml
--- old/delta-0.22.0/Cargo.toml 2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/Cargo.toml 2026-11-28 19:50:07.000000000 +0100
@@ -8,7 +8,7 @@
 homepage = "https://github.com/dandavison/delta";
 license = "MIT"
 repository = "https://github.com/dandavison/delta";
-version = "0.22.0"
+version = "0.23.0"
 
 [[bin]]
 name = "delta"
@@ -38,7 +38,7 @@
 ] }
 console = "0.15.0"
 ctrlc = "3.2.5"
-delta-gitu = { version = "0.1.27", default-features = false, optional = true }
+delta-gitu = { version = "0.1.28", default-features = false, optional = true }
 dirs = "6.0.0"
 git2 = { version = "0.20.0", default-features = false, features = [] }
 grep-cli = "0.1.8"
@@ -65,7 +65,7 @@
 
 [features]
 default = ["gitu"]
-# `delta --tui`: an interactive git client and pager, with delta as its 
renderer.
+# `delta tui`: an interactive git client and pager, with delta as its renderer.
 gitu = ["dep:delta-gitu", "dep:log", "dep:simple-logging"]
 
 [lints.rust]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/README.md new/delta-0.23.0/README.md
--- old/delta-0.22.0/README.md  2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/README.md  2026-11-28 19:50:07.000000000 +0100
@@ -51,7 +51,7 @@
 Alternatively, delta can be used as a TUI based on 
[gitu](https://github.com/altsem/gitu), with many
 keybindings for exploring `git diff`, `git show`, and `git log` views, the 
ability to stage directly
 from delta-rendered diffs (including side-by-side), reorder and fixup commits 
in your native log
-view, and all of gitu's other git operations (commit, push, pull, frebase, 
etc). This is a much more
+view, and all of gitu's other git operations (commit, push, pull, rebase, 
etc). This is a much more
 powerful way to use delta:
 
 ```gitconfig
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/difftastic-demo/first-message 
new/delta-0.23.0/etc/difftastic-demo/first-message
--- old/delta-0.22.0/etc/difftastic-demo/first-message  2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/etc/difftastic-demo/first-message  2026-11-28 
19:50:07.000000000 +0100
@@ -1,6 +1,6 @@
 Add the before version of every example
 
 Each later commit changes one example. Its message says what difftastic shows
-for the change, and what a line diff shows. In delta --tui, * switches between
+for the change, and what a line diff shows. In delta tui, * switches between
 the two.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/difftastic-demo/make-repo 
new/delta-0.23.0/etc/difftastic-demo/make-repo
--- old/delta-0.22.0/etc/difftastic-demo/make-repo      2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/etc/difftastic-demo/make-repo      2026-11-28 
19:50:07.000000000 +0100
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-# Build a git repo at $1 for comparing git's and difftastic's view of changes 
in delta --tui.
+# Build a git repo at $1 for comparing git's and difftastic's view of changes 
in delta tui.
 # The first commit adds the before version of every example in examples/; each 
later commit
 # changes one example, and its message says what difftastic shows and what a 
line diff shows.
 # An existing repo at $1 is replaced.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/release.Makefile 
new/delta-0.23.0/etc/release.Makefile
--- old/delta-0.22.0/etc/release.Makefile       2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/etc/release.Makefile       2026-11-28 19:50:07.000000000 
+0100
@@ -5,8 +5,8 @@
        clean \
        check-environment \
        bump-version \
-       draft-release-notes \
-       create-github-release \
+       create-draft-release \
+       push-release-tag \
        bump-version-in-documentation-links
 
 
@@ -33,21 +33,21 @@
        touch $(BUMP_VERSION_SENTINEL)
 
 
-draft-release-notes:
+create-draft-release:
        [ -n  "$$DELTA_OLD_VERSION" ]
        [ -n  "$$DELTA_NEW_VERSION" ]
        gh release create "$$DELTA_NEW_VERSION" --draft --generate-notes 
--notes-start-tag "$$DELTA_OLD_VERSION"
 
 
-CREATE_GITHUB_RELEASE_SENTINEL=.make-sentinels/create-github-release
-create-github-release: $(CREATE_GITHUB_RELEASE_SENTINEL)
-$(CREATE_GITHUB_RELEASE_SENTINEL): | check-environment
+PUSH_RELEASE_TAG_SENTINEL=.make-sentinels/push-release-tag
+push-release-tag: $(PUSH_RELEASE_TAG_SENTINEL)
+$(PUSH_RELEASE_TAG_SENTINEL): | check-environment
        @echo \# Creating release tag
        git tag "$$DELTA_NEW_VERSION"
        git push
        git push --tags
        @echo \# See https://github.com/dandavison/delta/releases
-       touch $(CREATE_GITHUB_RELEASE_SENTINEL)
+       touch $(PUSH_RELEASE_TAG_SENTINEL)
 
 
 
BUMP_VERSION_IN_DOCUMENTATION_LINKS_SENTINEL=.make-sentinels/bump-version-in-documentation-links
@@ -65,6 +65,6 @@
        release \
        check-environment \
        bump-version \
-       draft-release-notes \
-       create-github-release \
+       create-draft-release \
+       push-release-tag \
        bump-version-in-documentation-links
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/tui-demo/01-diff.tape 
new/delta-0.23.0/etc/tui-demo/01-diff.tape
--- old/delta-0.22.0/etc/tui-demo/01-diff.tape  2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/etc/tui-demo/01-diff.tape  2026-11-28 19:50:07.000000000 
+0100
@@ -1,9 +1,9 @@
 Hide
 # A branch whose diff from main is the 9 files of the commit implementing hunk 
styles with style
-# strings, in a clone whose remote is delta on GitHub, for gh, which pages 
with delta --tui.
+# strings, in a clone whose remote is delta on GitHub, for gh, which pages 
with delta tui.
 Type "git checkout -q -b hunk-styles 2245582f && git branch -q -f main 
2245582f~" Enter
 Type "git remote add origin https://github.com/dandavison/delta.git"; Enter
-Type "export GH_PAGER='delta --tui' && clear" Enter
+Type "export GH_PAGER='delta tui' && clear" Enter
 Sleep 500ms
 Show
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/tui-demo/02-diff-commands.tape 
new/delta-0.23.0/etc/tui-demo/02-diff-commands.tape
--- old/delta-0.22.0/etc/tui-demo/02-diff-commands.tape 2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/etc/tui-demo/02-diff-commands.tape 2026-11-28 
19:50:07.000000000 +0100
@@ -1,9 +1,9 @@
 Hide
 # A branch whose diff from main is the 9 files of the commit implementing hunk 
styles with style
-# strings, in a clone whose remote is delta on GitHub, for gh, which pages 
with delta --tui.
+# strings, in a clone whose remote is delta on GitHub, for gh, which pages 
with delta tui.
 Type "git checkout -q -b hunk-styles 2245582f && git branch -q -f main 
2245582f~" Enter
 Type "git remote add origin https://github.com/dandavison/delta.git"; Enter
-Type "export GH_PAGER='delta --tui' && clear" Enter
+Type "export GH_PAGER='delta tui' && clear" Enter
 Sleep 500ms
 Show
 
@@ -79,7 +79,7 @@
 Announce@3s "To use delta's TUI as shown in this video put the following in 
git config:"
 Hide
 Type "q" Sleep 1s
-Type "clear; show_config \"# For gh pr diff, also in your shell:\" \"# export 
GH_PAGER='delta --tui'\"" Enter
+Type "clear; show_config \"# For gh pr diff, also in your shell:\" \"# export 
GH_PAGER='delta tui'\"" Enter
 Sleep 1s
 Show
 Sleep 8s
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/tui-demo/04-commit.tape 
new/delta-0.23.0/etc/tui-demo/04-commit.tape
--- old/delta-0.22.0/etc/tui-demo/04-commit.tape        2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/etc/tui-demo/04-commit.tape        2026-11-28 
19:50:07.000000000 +0100
@@ -6,8 +6,8 @@
 Show
 
 Announce@4s "How to use delta's TUI: staging & committing" "delta's TUI is 
based on https://github.com/altsem/gitu";
-Announce "delta --tui opens the status view"
-Type "delta --tui" Sleep 500ms Enter
+Announce "delta tui opens the status view"
+Type "delta tui" Sleep 500ms Enter
 Wait+Screen /Unstaged changes/
 Hide
 Type "S"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/tui-demo/_settings.tape 
new/delta-0.23.0/etc/tui-demo/_settings.tape
--- old/delta-0.22.0/etc/tui-demo/_settings.tape        2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/etc/tui-demo/_settings.tape        2026-11-28 
19:50:07.000000000 +0100
@@ -5,7 +5,7 @@
 Set FontSize 24
 Set Columns 200
 Set Rows 56
-Set WindowTitle "delta --tui"
+Set WindowTitle "delta tui"
 Set KeyboardOverlay Input
 Set KeyboardOverlayLocation CaptionRow
 Set KeyboardOverlayFontSize 52
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/etc/tui-demo/demo.gitconfig 
new/delta-0.23.0/etc/tui-demo/demo.gitconfig
--- old/delta-0.22.0/etc/tui-demo/demo.gitconfig        2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/etc/tui-demo/demo.gitconfig        2026-11-28 
19:50:07.000000000 +0100
@@ -8,9 +8,9 @@
     # The commit chapter's commit message editor.
     editor = micro
 [pager]
-    diff = delta --tui
-    show = delta --tui
-    log = delta --tui
+    diff = delta tui
+    show = delta tui
+    log = delta tui
 
 [delta]
     navigate = true
@@ -46,7 +46,7 @@
 commit-format-full = tformat:%n%n▸ %h %C(blue)%an 
%C(blue)%ar%C(auto)%d%C(reset)%n%n%w(0,4,4)%C(green)%s%C(reset)%n%+b
 
 
-# delta --tui (the TUI). A key is its gitu config path, with dashes for
+# delta tui (the TUI). A key is its gitu config path, with dashes for
 # underscores and dots, less "general". A list is one line per item.
 [delta]
     collapsed-sections = branch_status
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/manual/src/installation.md 
new/delta-0.23.0/manual/src/installation.md
--- old/delta-0.22.0/manual/src/installation.md 2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/manual/src/installation.md 2026-11-28 19:50:07.000000000 
+0100
@@ -1,13 +1,13 @@
 # Installation
 
 You can download an executable for your system:
-[Linux 
(glibc)](https://github.com/dandavison/delta/releases/download/0.21.2/delta-0.21.2-x86_64-unknown-linux-gnu.tar.gz)
+[Linux 
(glibc)](https://github.com/dandavison/delta/releases/download/0.22.0/delta-0.22.0-x86_64-unknown-linux-gnu.tar.gz)
 |
-[Linux 
(musl)](https://github.com/dandavison/delta/releases/download/0.21.2/delta-0.21.2-x86_64-unknown-linux-musl.tar.gz)
+[Linux 
(musl)](https://github.com/dandavison/delta/releases/download/0.22.0/delta-0.22.0-x86_64-unknown-linux-musl.tar.gz)
 |
-[MacOS](https://github.com/dandavison/delta/releases/download/0.21.2/delta-0.21.2-aarch64-apple-darwin.tar.gz)
+[MacOS](https://github.com/dandavison/delta/releases/download/0.22.0/delta-0.22.0-aarch64-apple-darwin.tar.gz)
 |
-[Windows](https://github.com/dandavison/delta/releases/download/0.21.2/delta-0.21.2-x86_64-pc-windows-msvc.zip)
+[Windows](https://github.com/dandavison/delta/releases/download/0.22.0/delta-0.22.0-x86_64-pc-windows-msvc.zip)
 |
 [All](https://github.com/dandavison/delta/releases)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/manual/src/tui.md 
new/delta-0.23.0/manual/src/tui.md
--- old/delta-0.22.0/manual/src/tui.md  2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/manual/src/tui.md  2026-11-28 19:50:07.000000000 +0100
@@ -45,7 +45,7 @@
 ```gitconfig
 [delta]
     # Head each file with its `git diff --stat` row.
-    file-header = stat
+    file-style = diffstat
     # Open every patch with its files folded.
     start-folded = true
 ```
@@ -85,7 +85,7 @@
     log-args = --pretty=commit-format
     show-args = --pretty=commit-format-full
     # Head each file with its `git diff --stat` row.
-    file-header = stat
+    file-style = diffstat
     # Open every patch with its files folded.
     start-folded = true
     # A view of your own; use H to bind features, views, and commands to keys.
@@ -141,7 +141,7 @@
 - `left` folds a section you unfolded on this screen (with `right` or `tab`) 
when the cursor is on it or anywhere inside it, and moves the cursor onto it. 
So `right` then `left` returns to where you were, whether `right` opened a 
commit or unfolded a file. On the first screen `left` does not quit.
 - `right` on a blame line opens its commit at that line. `enter` opens a file 
in the editor named by the first of `GITU_SHOW_EDITOR`, `VISUAL`, `EDITOR` and 
`GIT_EDITOR` that is set, at the hunk or line.
 - In `git log -p`, the second `shift+tab` folds every commit and the third 
unfolds everything.
-- `git diff --stat` opens with every file folded to its stat row; `tab` 
unfolds a file to its diff. A patch asked for with its stat (`git log -p 
--stat`, `--patch-with-stat`) has each file headed by its stat row, unfolded. 
`git log --stat` and `git show --stat` show git's own stat. `file-header = 
stat` heads every file with its stat row, folded or not; after `shift+tab` 
unfolds everything, files are headed by delta's file headers. `start-folded = 
true` opens every patch with its files folded.
+- `git diff --stat` opens with every file folded to its stat row; `tab` 
unfolds a file to its diff. A patch asked for with its stat (`git log -p 
--stat`, `--patch-with-stat`) has each file headed by its stat row, unfolded. 
`git log --stat` and `git show --stat` show git's own stat. The word `diffstat` 
in delta's `file-style` (as in `file-style = diffstat bold blue`) heads every 
file with its stat row, folded or not; after `shift+tab` unfolds everything, 
files are headed by delta's file headers. `start-folded = true` opens every 
patch with its files folded.
 
 ### Staging
 
@@ -378,7 +378,7 @@
 [delta]
     features = tui
 [delta "tui"]
-    file-header = stat
+    file-style = diffstat
     start-folded = true
 ```
 
@@ -425,9 +425,6 @@
     # Files left out of diff and log views, as git pathspecs. Example:
     hide = *.pb.go
     hide = vendor
-    # What heads each file: delta's file header ("delta"), or the file's
-    # `git diff --stat` row, counted by the TUI ("stat").
-    file-header = delta
     # Open every patch with its files folded.
     start-folded = false
     # Let the cursor stop on unchanged lines.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/pyproject.toml 
new/delta-0.23.0/pyproject.toml
--- old/delta-0.22.0/pyproject.toml     1970-01-01 01:00:00.000000000 +0100
+++ new/delta-0.23.0/pyproject.toml     2026-11-28 19:50:07.000000000 +0100
@@ -0,0 +1,27 @@
+# Builds platform-specific wheels that contain the compiled delta executable, 
so that
+# `pip install git-delta` / `uv tool install git-delta` installs delta without 
a Rust toolchain.
+[build-system]
+requires = ["maturin>=1.9,<2.0"]
+build-backend = "maturin"
+
+[project]
+name = "git-delta"
+description = "A syntax-highlighting pager for git, diff, grep, and blame 
output"
+readme = "README.md"
+license = "MIT"
+authors = [{ name = "Dan Davison", email = "[email protected]" }]
+dynamic = ["version"]
+classifiers = [
+    "Environment :: Console",
+    "Programming Language :: Rust",
+    "Topic :: Software Development :: Version Control :: Git",
+]
+
+[project.urls]
+Homepage = "https://github.com/dandavison/delta";
+Documentation = "https://dandavison.github.io/delta/";
+Repository = "https://github.com/dandavison/delta";
+
+[tool.maturin]
+bindings = "bin"
+strip = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/cli.rs new/delta-0.23.0/src/cli.rs
--- old/delta-0.22.0/src/cli.rs 2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/src/cli.rs 2026-11-28 19:50:07.000000000 +0100
@@ -29,7 +29,8 @@
 #[derive(Parser)]
 #[command(
     name = "delta",
-    about = "A viewer for git and diff output",
+    about = "A viewer for git and diff output. \
+             `delta tui` (experimental) runs it in interactive mode.",
     version,
     color = ColorChoice::Always,
     // output is wrapped by delta later:
@@ -37,6 +38,16 @@
     max_term_width = usize::MAX,
 )]
 pub struct Opt {
+    #[cfg(feature = "gitu")]
+    #[arg(long = "agent-instructions", hide = true)]
+    /// Print instructions for AI agents on using delta.
+    ///
+    /// They are a skill: markdown with YAML front matter, which can be saved 
as a SKILL.md. For
+    /// now they cover reviewing code with a person in delta tui. Same as
+    /// `delta tui --agent-instructions`, which is experimental: it is refused 
unless git config's
+    /// `[delta]` section has `experimental = true`, and is not listed.
+    pub agent_instructions: bool,
+
     #[arg(long = "blame-code-style", value_name = "STYLE")]
     /// Style string for the code section of a git blame line.
     ///
@@ -297,6 +308,8 @@
     /// Style string for the file section.
     ///
     /// See STYLES section. The style 'omit' can be used to remove the file 
section from the output.
+    /// The special attribute 'diffstat' makes delta tui head each file with 
its `git diff --stat`
+    /// row; delta itself ignores it.
     pub file_style: String,
 
     #[arg(long = "file-transformation", value_name = "SED_CMD")]
@@ -974,24 +987,10 @@
     pub true_color: String,
 
     #[cfg(feature = "gitu")]
-    #[arg(long = "tui", visible_alias = "gitu")]
-    /// Run delta as a live interactive git interface, based on gitu.
-    ///
-    /// See <https://dandavison.github.io/delta/tui.html>.
-    /// Must be the first argument (see `delta --tui --help` for possible 
subsequent arguments).
-    /// To use it as git's pager, set e.g. pager.diff to `delta --tui`.
-    /// The TUI is experimental: config and behavior may change 
backwards-incompatibly.
+    #[arg(long = "tui", alias = "gitu", hide = true)]
+    /// --tui and --gitu are aliases for `delta tui`. They are not listed in 
help output.
     pub tui: bool,
 
-    #[cfg(feature = "gitu")]
-    #[arg(long = "agent-instructions")]
-    /// Print instructions for AI agents on using delta.
-    ///
-    /// They are a skill: markdown with YAML front matter, which can be saved 
as a SKILL.md. For
-    /// now they cover reviewing code with a person in delta --tui. Same as
-    /// `delta --tui --agent-instructions`.
-    pub agent_instructions: bool,
-
     #[arg(
         long = "whitespace-error-style",
         default_value = "auto auto",
@@ -1557,17 +1556,23 @@
 mod tests {
     use super::*;
 
+    /// The help says to run the TUI with `delta tui`. `--tui` and `--gitu` 
still run it, as delta
+    /// 0.22.0 did, but are not listed.
     #[cfg(feature = "gitu")]
     #[test]
-    fn help_lists_tui() {
+    fn help_says_to_run_the_tui_with_delta_tui() {
         let help = Opt::command().render_help().to_string();
-        assert!(help.contains("--tui"), "{}", help);
+        assert!(help.contains("delta tui"), "{}", help);
+        assert!(!help.contains("--tui"), "{}", help);
+        assert!(!help.contains("--gitu"), "{}", help);
     }
 
+    /// `--agent-instructions` is for an experimental feature of the TUI, 
which refuses it unless
+    /// git config's `[delta]` section has `experimental = true`, so the help 
doesn't list it.
     #[cfg(feature = "gitu")]
     #[test]
-    fn help_lists_agent_instructions() {
+    fn help_does_not_list_agent_instructions() {
         let help = Opt::command().render_help().to_string();
-        assert!(help.contains("--agent-instructions"), "{}", help);
+        assert!(!help.contains("--agent-instructions"), "{}", help);
     }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/features/diff_line_metadata.rs 
new/delta-0.23.0/src/features/diff_line_metadata.rs
--- old/delta-0.22.0/src/features/diff_line_metadata.rs 2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/src/features/diff_line_metadata.rs 2026-11-28 
19:50:07.000000000 +0100
@@ -5,6 +5,10 @@
 // by color, adds gutters), so that identity cannot be recovered from the
 // painted text alone -- the pager, which still has it at render time, states 
it.
 //
+// The protocol, and the section numbers ("spec §N") cited in this file, are
+// those of
+// 
https://github.com/stefanhaller/diff-line-metadata-spec/blob/main/diff-line-metadata-osc-1717.md
+//
 // This is gated on the OSC1717 environment variable: the host advertises the
 // protocol versions it understands and delta emits the highest mutually-
 // understood one. When the variable is unset (i.e. delta is not running under
@@ -16,10 +20,12 @@
 // Ghostty, VS Code, ConEmu, urxvt); none of them interpret it, so a terminal 
that
 // is not a participating host skips it harmlessly.
 
+use std::collections::VecDeque;
 use std::io::{self, Write};
 use std::sync::OnceLock;
 
-use crate::delta::{DiffType, State};
+use crate::config::delta_unreachable;
+use crate::delta::{DiffType, InMergeConflict, State};
 
 /// Highest protocol version this build of delta knows how to emit.
 const SUPPORTED_VERSION: u32 = 1;
@@ -58,6 +64,9 @@
     format!("{OSC};{version}{ST}")
 }
 
+/// A content line's record: (`type_char`, `new_line`, `old_line`).
+pub type Record = (char, usize, Option<usize>);
+
 /// Tracks the current old-/new-file line numbers within a hunk and formats the
 /// per-line OSC sequence. One instance is held by the `Painter` (when emission
 /// is negotiated) and re-seeded at every hunk header.
@@ -65,24 +74,35 @@
     version: u32,
     old_line: usize,
     new_line: usize,
+    /// In a combined diff, the line number in each parent.
+    parent_lines: Vec<usize>,
     file: String,
-    /// The record (`type_char`, `new_line`, `old_line`) most recently emitted
-    /// for a primary content line, so a wrapped continuation row can re-emit 
it
-    /// without advancing the counters. Set by every primary line; read by the
-    /// wrapped row(s) that immediately follow it.
-    last_record: Option<(char, usize, Option<usize>)>,
+    /// The record most recently emitted for a primary content line, so a
+    /// wrapped continuation row can re-emit it without advancing the counters.
+    /// Set by every primary line; read by the wrapped row(s) that immediately
+    /// follow it.
+    last_record: Option<Record>,
+    /// The records of a combined diff's lines, by the kind delta draws them
+    /// as, in the order git wrote them. delta draws a run of changed lines 
with
+    /// the removed ones first, so a line's record is worked out when delta
+    /// reads the line and taken when delta draws it.
+    combined: CombinedRecords,
+    /// The records for the lines of a merge conflict that delta is drawing:
+    /// those it draws as removed (the ancestor's) and as added (one side's).
+    conflict: CombinedRecords,
+}
+
+#[derive(Default)]
+struct CombinedRecords {
+    minus: VecDeque<Record>,
+    zero: VecDeque<Record>,
+    plus: VecDeque<Record>,
 }
 
 impl DiffLineMetadata {
     /// Returns an emitter iff the host negotiated a protocol version.
     pub fn from_env() -> Option<Self> {
-        negotiated_version().map(|version| Self {
-            version,
-            old_line: 0,
-            new_line: 0,
-            file: String::new(),
-            last_record: None,
-        })
+        negotiated_version().map(Self::new)
     }
 
     /// A version-1 emitter regardless of environment. Tests cannot go through
@@ -90,28 +110,84 @@
     /// so an env var set by one test would leak into all others.
     #[cfg(test)]
     pub fn v1_for_tests() -> Self {
+        Self::new(1)
+    }
+
+    fn new(version: u32) -> Self {
         Self {
-            version: 1,
+            version,
             old_line: 0,
             new_line: 0,
+            parent_lines: Vec::new(),
             file: String::new(),
             last_record: None,
+            combined: CombinedRecords::default(),
+            conflict: CombinedRecords::default(),
         }
     }
 
     /// Seed the line-number counters and file path at a hunk header. Mirrors
     /// `LineNumbersData::initialize_hunk`: the first entry is the old-file 
start,
-    /// the last is the new-file start.
+    /// the last is the new-file start. In a combined diff the entries before
+    /// the last are each parent's start.
     pub fn initialize_hunk(&mut self, line_numbers: &[(usize, usize)], file: 
String) {
-        self.old_line = line_numbers[0].0;
-        self.new_line = line_numbers[line_numbers.len() - 1].0;
+        let (new, parents) = line_numbers.split_last().unwrap();
+        self.old_line = parents[0].0;
+        self.new_line = new.0;
+        self.parent_lines = parents.iter().map(|(start, _)| *start).collect();
         self.file = file;
     }
 
+    /// Advance the counters past a line of a combined diff whose prefix (one
+    /// column per parent) is `prefix`, and return its record. A line in the
+    /// working tree is identified by its line there, as `a` if a parent lacks
+    /// it and as `c` if not. A line no longer in the working tree is a `d`,
+    /// identified by its line in the first parent that has it. That is not
+    /// unique when two parents lose different lines with the same number.
+    pub fn read_combined_line(&mut self, prefix: &str) -> Record {
+        let record = match prefix.find('-') {
+            Some(parent) => ('d', self.new_line, 
Some(self.parent_lines[parent])),
+            None if prefix.contains('+') => ('a', self.new_line, None),
+            None => ('c', self.new_line, None),
+        };
+        let column = if record.0 == 'd' { '-' } else { ' ' };
+        for (parent, c) in prefix.chars().enumerate() {
+            if c == column {
+                self.parent_lines[parent] += 1;
+            }
+        }
+        if record.0 != 'd' {
+            self.new_line += 1;
+        }
+        record
+    }
+
+    /// Hold the record of a line of a combined diff outside a merge conflict
+    /// until delta draws the line.
+    pub fn hold_combined_line(&mut self, prefix: &str) {
+        let record = self.read_combined_line(prefix);
+        match record.0 {
+            'd' => self.combined.minus.push_back(record),
+            'a' => self.combined.plus.push_back(record),
+            _ => self.combined.zero.push_back(record),
+        }
+    }
+
+    /// Hold the records of the lines of a merge conflict delta is about to
+    /// draw as one diff: `minus` drawn as removed, `plus` as added.
+    pub fn hold_conflict_lines(&mut self, minus: &[Record], plus: &[Record]) {
+        self.conflict = CombinedRecords {
+            minus: minus.iter().copied().collect(),
+            zero: VecDeque::new(),
+            plus: plus.iter().copied().collect(),
+        };
+    }
+
     /// Advance the counters for `state` and return the OSC sequence to prepend
     /// to that content line, or an empty string for states that carry no
-    /// metadata (headers and -- in this prototype -- combined/merge diffs). 
The
-    /// counter arithmetic mirrors `line_numbers::linenumbers_and_styles`.
+    /// metadata (headers). The counter arithmetic mirrors
+    /// `line_numbers::linenumbers_and_styles`. A line of a combined diff takes
+    /// the record held for it as delta read it.
     ///
     /// A wrapped continuation row (`Hunk*Wrapped`, produced when side-by-side
     /// wraps a long line into several output rows) re-emits the record of the
@@ -142,6 +218,21 @@
                 self.old_line += 1;
                 record
             }
+            HunkMinus(DiffType::Combined(_, in_conflict), _) => self
+                .held(in_conflict)
+                .minus
+                .pop_front()
+                .unwrap_or_else(no_record),
+            HunkZero(DiffType::Combined(_, in_conflict), _) => self
+                .held(in_conflict)
+                .zero
+                .pop_front()
+                .unwrap_or_else(no_record),
+            HunkPlus(DiffType::Combined(_, in_conflict), _) => self
+                .held(in_conflict)
+                .plus
+                .pop_front()
+                .unwrap_or_else(no_record),
             HunkZeroWrapped | HunkMinusWrapped | HunkPlusWrapped => match 
self.last_record {
                 Some(record) => record,
                 None => return String::new(),
@@ -158,6 +249,13 @@
         )
     }
 
+    fn held(&mut self, in_conflict: &InMergeConflict) -> &mut CombinedRecords {
+        match in_conflict {
+            InMergeConflict::No => &mut self.combined,
+            InMergeConflict::Yes => &mut self.conflict,
+        }
+    }
+
     /// The `h` (hunk-header) record for the current hunk. `initialize_hunk` 
has
     /// just seeded `new_line` with the hunk's new-file start -- which is the
     /// hunk's first line (spec §5.2) -- so it is in hand exactly when the hunk
@@ -191,6 +289,10 @@
     }
 }
 
+fn no_record() -> Record {
+    delta_unreachable("A line of a combined diff was drawn with no OSC 1717 
record held for it.")
+}
+
 /// The commit a commit-header line names: the first token after whatever
 /// `--commit-regex` matched, which is where git prints it. `None` when there 
is
 /// no such token or it is no hash, so a custom regex matching something else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/features/side_by_side.rs 
new/delta-0.23.0/src/features/side_by_side.rs
--- old/delta-0.22.0/src/features/side_by_side.rs       2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/src/features/side_by_side.rs       2026-11-28 
19:50:07.000000000 +0100
@@ -258,6 +258,7 @@
     config: &Config,
     line_numbers_data: &mut Option<&mut line_numbers::LineNumbersData>,
     diff_line_metadata: &mut Option<&mut DiffLineMetadata>,
+    line_state: &State,
     painted_prefix: Option<ansi_term::ANSIString>,
     background_color_extends_to_terminal_width: BgShouldFill,
 ) {
@@ -282,9 +283,11 @@
         // before each panel's cell. Compute it once so the counters advance a
         // single step for the line; a wrapped continuation row re-emits the
         // line's record (osc_for_line handles this) so it, too, is identified.
+        // The line's own state, since a combined diff's line takes its record 
from
+        // it; the states here are drawn as a unified diff's.
         let osc = diff_line_metadata
             .as_mut()
-            .map(|md| md.osc_for_line(&state))
+            .map(|md| md.osc_for_line(if line_index == 0 { line_state } else { 
&state }))
             .unwrap_or_default();
         for panel_side in &[Left, Right] {
             let (mut panel_line, panel_line_is_empty) = Painter::paint_line(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/handlers/hunk.rs 
new/delta-0.23.0/src/handlers/hunk.rs
--- old/delta-0.22.0/src/handlers/hunk.rs       2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/src/handlers/hunk.rs       2026-11-28 19:50:07.000000000 
+0100
@@ -78,7 +78,19 @@
         if let State::HunkHeader(_, parsed_hunk_header, line, raw_line) = 
&self.state.clone() {
             self.emit_hunk_header_line(parsed_hunk_header, line, raw_line)?;
         }
-        self.state = match new_line_state(&self.line, &self.raw_line, 
&self.state, self.config) {
+        let new_state = new_line_state(&self.line, &self.raw_line, 
&self.state, self.config);
+        if let (
+            Some(
+                HunkMinus(Combined(MergeParents::Prefix(prefix), _), _)
+                | HunkZero(Combined(MergeParents::Prefix(prefix), _), _)
+                | HunkPlus(Combined(MergeParents::Prefix(prefix), _), _),
+            ),
+            Some(metadata),
+        ) = (&new_state, self.painter.diff_line_metadata.as_mut())
+        {
+            metadata.hold_combined_line(prefix);
+        }
+        self.state = match new_state {
             Some(HunkMinus(diff_type, raw_line)) => {
                 if let HunkPlus(_, _) = self.state {
                     // We have just entered a new subhunk; process the 
previous one
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/handlers/merge_conflict.rs 
new/delta-0.23.0/src/handlers/merge_conflict.rs
--- old/delta-0.22.0/src/handlers/merge_conflict.rs     2026-11-23 
04:53:39.000000000 +0100
+++ new/delta-0.23.0/src/handlers/merge_conflict.rs     2026-11-28 
19:50:07.000000000 +0100
@@ -7,6 +7,7 @@
 use crate::cli;
 use crate::config::{self, delta_unreachable};
 use crate::delta::{DiffType, InMergeConflict, MergeParents, State, 
StateMachine};
+use crate::features::diff_line_metadata::Record;
 use crate::minusplus::MinusPlus;
 use crate::paint::{self, prepare};
 use crate::style::Style;
@@ -28,6 +29,8 @@
 
 pub type MergeConflictCommitNames = MergeConflictCommits<Option<String>>;
 
+pub type MergeConflictRecords = MergeConflictCommits<Vec<Record>>;
+
 impl StateMachine<'_> {
     pub fn handle_merge_conflict_line(&mut self) -> std::io::Result<bool> {
         use DiffType::*;
@@ -40,8 +43,20 @@
         }
 
         match self.state.clone() {
-            HunkHeader(Combined(merge_parents, InMergeConflict::No), _, _, _)
-            | HunkMinus(Combined(merge_parents, InMergeConflict::No), _)
+            HunkHeader(
+                Combined(merge_parents, InMergeConflict::No),
+                parsed_hunk_header,
+                line,
+                raw_line,
+            ) => {
+                // The hunk's first line is the conflict's: the hunk header is 
drawn
+                // with the first line, which the conflict takes.
+                if parse_merge_marker(&self.line, "++<<<<<<<").is_some() {
+                    self.emit_hunk_header_line(&parsed_hunk_header, &line, 
&raw_line)?;
+                }
+                handled_line = self.enter_merge_conflict(&merge_parents)
+            }
+            HunkMinus(Combined(merge_parents, InMergeConflict::No), _)
             | HunkZero(Combined(merge_parents, InMergeConflict::No), _)
             | HunkPlus(Combined(merge_parents, InMergeConflict::No), _) => {
                 handled_line = self.enter_merge_conflict(&merge_parents)
@@ -76,11 +91,21 @@
         Ok(handled_line)
     }
 
+    /// Advance the OSC 1717 line counters past the current line, which is in a
+    /// merge conflict, and return its record.
+    fn read_conflict_line(&mut self, merge_parents: &MergeParents) -> 
Option<Record> {
+        let n_parents = DiffType::Combined(merge_parents.clone(), 
InMergeConflict::Yes).n_parents();
+        let prefix = self.line.get(..n_parents).unwrap_or(&self.line);
+        let metadata = self.painter.diff_line_metadata.as_mut()?;
+        Some(metadata.read_combined_line(prefix))
+    }
+
     fn enter_merge_conflict(&mut self, merge_parents: &MergeParents) -> bool {
         use State::*;
         if let Some(commit) = parse_merge_marker(&self.line, "++<<<<<<<") {
-            self.state = MergeConflict(merge_parents.clone(), Ours);
             self.painter.merge_conflict_commit_names[Ours] = 
Some(commit.to_string());
+            self.read_conflict_line(merge_parents);
+            self.state = MergeConflict(merge_parents.clone(), Ours);
             true
         } else {
             false
@@ -90,8 +115,9 @@
     fn enter_ancestral(&mut self, merge_parents: &MergeParents) -> bool {
         use State::*;
         if let Some(commit) = parse_merge_marker(&self.line, "++|||||||") {
-            self.state = MergeConflict(merge_parents.clone(), Ancestral);
             self.painter.merge_conflict_commit_names[Ancestral] = 
Some(commit.to_string());
+            self.read_conflict_line(merge_parents);
+            self.state = MergeConflict(merge_parents.clone(), Ancestral);
             true
         } else {
             false
@@ -101,6 +127,7 @@
     fn enter_theirs(&mut self, merge_parents: &MergeParents) -> bool {
         use State::*;
         if self.line.starts_with("++=======") {
+            self.read_conflict_line(merge_parents);
             self.state = MergeConflict(merge_parents.clone(), Theirs);
             true
         } else {
@@ -111,6 +138,7 @@
     fn exit_merge_conflict(&mut self, merge_parents: &MergeParents) -> 
std::io::Result<bool> {
         if let Some(commit) = parse_merge_marker(&self.line, "++>>>>>>>") {
             self.painter.merge_conflict_commit_names[Theirs] = 
Some(commit.to_string());
+            self.read_conflict_line(merge_parents);
             self.paint_buffered_merge_conflict_lines(merge_parents)?;
             Ok(true)
         } else {
@@ -120,7 +148,13 @@
 
     fn store_line(&mut self, commit: MergeConflictCommit, state: State) -> 
bool {
         use State::*;
-        if let HunkMinus(diff_type, _) | HunkZero(diff_type, _) | 
HunkPlus(diff_type, _) = &state {
+        if let HunkMinus(diff_type @ DiffType::Combined(merge_parents, _), _)
+        | HunkZero(diff_type @ DiffType::Combined(merge_parents, _), _)
+        | HunkPlus(diff_type @ DiffType::Combined(merge_parents, _), _) = 
&state
+        {
+            if let Some(record) = self.read_conflict_line(merge_parents) {
+                
self.painter.merge_conflict_records[commit.clone()].push(record);
+            }
             let line = prepare(&self.line, diff_type.n_parents(), self.config);
             self.painter.merge_conflict_lines[commit].push((line, state));
             true
@@ -153,13 +187,19 @@
                 self.config,
             )?;
             self.painter.emit()?;
+            if let Some(metadata) = self.painter.diff_line_metadata.as_mut() {
+                metadata.hold_conflict_lines(
+                    &self.painter.merge_conflict_records[Ancestral],
+                    &self.painter.merge_conflict_records[derived_commit_type],
+                );
+            }
             paint::paint_minus_and_plus_lines(
                 MinusPlus::new(
                     &self.painter.merge_conflict_lines[Ancestral],
                     &self.painter.merge_conflict_lines[derived_commit_type],
                 ),
                 &mut self.painter.line_numbers_data,
-                &mut None,
+                &mut self.painter.diff_line_metadata.as_mut(),
                 &mut self.painter.highlighter,
                 &mut self.painter.output_buffer,
                 self.painter.side_by_side,
@@ -174,6 +214,7 @@
             self.config,
         )?;
         self.painter.merge_conflict_lines.clear();
+        self.painter.merge_conflict_records.clear();
         self.state = HunkZero(Combined(merge_parents.clone(), 
InMergeConflict::No), None);
         Ok(())
     }
@@ -291,6 +332,22 @@
     }
 }
 
+impl MergeConflictRecords {
+    pub fn new() -> Self {
+        Self {
+            ours: Vec::new(),
+            ancestral: Vec::new(),
+            theirs: Vec::new(),
+        }
+    }
+
+    fn clear(&mut self) {
+        self[Ours].clear();
+        self[Ancestral].clear();
+        self[Theirs].clear();
+    }
+}
+
 impl MergeConflictCommitNames {
     pub fn new() -> Self {
         Self {
@@ -368,6 +425,139 @@
         }
     }
 
+    /// The OSC 1717 records on each row of `output`, in order, with the row's
+    /// text after them; rows with no record are left out.
+    fn recorded_rows(output: &str) -> Vec<String> {
+        strip_ansi_codes(&output.replace("\x1b]1717;", "⟦").replace("\x1b\\", 
"⟧"))
+            .lines()
+            .filter(|row| row.contains('⟦'))
+            .map(|row| row.trim_end().to_string())
+            .collect()
+    }
+
+    #[test]
+    fn test_combined_diff_rows_carry_the_working_tree_line() {
+        // Each row of a combined diff is identified by its line in the working
+        // tree, as git numbers them after `+` in the hunk header. A line no
+        // longer in the working tree is identified by its line in the first
+        // parent that has it. The rows delta draws for a conflict are the
+        // lines between the markers, the ancestor's twice, once against each
+        // side.
+        let config = integration_test_utils::make_config_from_args(&[
+            "--file-style",
+            "omit",
+            "--file-decoration-style",
+            "none",
+            "--hunk-header-style",
+            "omit",
+        ]);
+        let output = integration_test_utils::run_delta_with_diff_line_metadata(
+            GIT_MERGE_CONFLICT_WITH_REMOVED_LINE,
+            &config,
+        );
+        assert_eq!(
+            recorded_rows(&output),
+            [
+                "⟦1;h;1;;f⟧",
+                "⟦1;c;1;;f⟧  a",
+                "⟦1;d;2;2;f⟧- b",
+                "⟦1;c;2;;f⟧  c",
+                "⟦1;a;6;;f⟧hello",
+                "⟦1;a;4;;f⟧hi",
+                "⟦1;a;6;;f⟧hello",
+                "⟦1;a;8;;f⟧hey",
+                "⟦1;c;10;;f⟧  z",
+            ]
+        );
+    }
+
+    #[test]
+    fn test_combined_diff_rows_carry_the_working_tree_line_side_by_side() {
+        let config = integration_test_utils::make_config_from_args(&[
+            "--side-by-side",
+            "--width",
+            "40",
+            "--file-style",
+            "omit",
+            "--file-decoration-style",
+            "none",
+            "--hunk-header-style",
+            "omit",
+        ]);
+        let output = integration_test_utils::run_delta_with_diff_line_metadata(
+            GIT_MERGE_CONFLICT_WITH_REMOVED_LINE,
+            &config,
+        );
+        let records: Vec<Vec<String>> = recorded_rows(&output)
+            .iter()
+            .map(|row| {
+                row.split('⟦')
+                    .skip(1)
+                    .map(|record| 
record.split('⟧').next().unwrap().to_string())
+                    .collect()
+            })
+            .collect();
+        assert_eq!(
+            records,
+            [
+                vec!["1;h;1;;f"],
+                vec!["1;c;1;;f", "1;c;1;;f"],
+                vec!["1;d;2;2;f"],
+                vec!["1;c;2;;f", "1;c;2;;f"],
+                vec!["1;a;6;;f"],
+                vec!["1;a;4;;f"],
+                vec!["1;a;6;;f"],
+                vec!["1;a;8;;f"],
+                vec!["1;c;10;;f", "1;c;10;;f"],
+            ]
+        );
+    }
+
+    #[test]
+    fn test_merge_conflict_on_a_hunks_first_line_keeps_the_hunk_header() {
+        let config = integration_test_utils::make_config_from_args(&[
+            "--file-style",
+            "omit",
+            "--file-decoration-style",
+            "none",
+            "--hunk-header-style",
+            "raw",
+            "--hunk-header-decoration-style",
+            "none",
+        ]);
+        let output = integration_test_utils::run_delta_with_diff_line_metadata(
+            GIT_TOY_MERGE_CONFLICT_NO_CONTEXT,
+            &config,
+        );
+        assert_eq!(
+            recorded_rows(&output),
+            [
+                "⟦1;h;1;;file⟧@@@ -1,1 -1,1 +1,6 @@@",
+                "⟦1;a;2;;file⟧a",
+                "⟦1;a;5;;file⟧b",
+            ]
+        );
+    }
+
+    const GIT_MERGE_CONFLICT_WITH_REMOVED_LINE: &str = "\
+diff --cc f
+index 7dcdb15,b097ba1..0000000
+--- a/f
++++ b/f
+@@@ -1,5 -1,4 +1,10 @@@
+  a
+- b
+  c
+++<<<<<<< HEAD
+ +hi
+++||||||| e41ea67
+++hello
+++=======
++ hey
+++>>>>>>> other
+  z
+";
+
     const GIT_TOY_MERGE_CONFLICT_NO_CONTEXT: &str = "\
 diff --cc file
 index 6178079,7898192..0000000
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/options/theme.rs 
new/delta-0.23.0/src/options/theme.rs
--- old/delta-0.22.0/src/options/theme.rs       2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/src/options/theme.rs       2026-11-28 19:50:07.000000000 
+0100
@@ -98,7 +98,7 @@
     } else if should_detect_color_mode(opt) {
         terminal_color_mode
     } else if opt.detect_dark_light == DetectDarkLight::Auto {
-        // Output that is not the terminal, as under `delta --tui`, which asks 
the
+        // Output that is not the terminal, as under `delta tui`, which asks 
the
         // terminal before it takes it over and says what it found.
         match opt.env.terminal_color_mode.as_deref() {
             Some("dark") => Some(Dark),
@@ -229,7 +229,7 @@
         }
     }
 
-    /// A delta whose output is not the terminal, as under `delta --tui`, 
cannot ask
+    /// A delta whose output is not the terminal, as under `delta tui`, cannot 
ask
     /// the terminal its background, so it takes the background from whoever 
could.
     #[test]
     fn test_terminal_color_mode_from_env_var_when_stdout_is_not_the_terminal() 
{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/paint.rs 
new/delta-0.23.0/src/paint.rs
--- old/delta-0.22.0/src/paint.rs       2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/src/paint.rs       2026-11-28 19:50:07.000000000 +0100
@@ -45,6 +45,8 @@
     pub diff_line_metadata: Option<DiffLineMetadata>,
     pub merge_conflict_lines: merge_conflict::MergeConflictLines,
     pub merge_conflict_commit_names: merge_conflict::MergeConflictCommitNames,
+    // The OSC 1717 records of the lines in `merge_conflict_lines`, when 
emitted.
+    pub merge_conflict_records: merge_conflict::MergeConflictRecords,
 }
 
 // How the background of a line is filled up to the end
@@ -113,6 +115,7 @@
             diff_line_metadata: DiffLineMetadata::from_env(),
             merge_conflict_lines: merge_conflict::MergeConflictLines::new(),
             merge_conflict_commit_names: 
merge_conflict::MergeConflictCommitNames::new(),
+            merge_conflict_records: 
merge_conflict::MergeConflictRecords::new(),
         }
     }
 
@@ -208,7 +211,8 @@
                 self.config,
                 &mut self.line_numbers_data.as_mut(),
                 &mut self.diff_line_metadata.as_mut(),
-                painted_prefix(state, self.config),
+                &state,
+                painted_prefix(state.clone(), self.config),
                 BgShouldFill::With(BgFillMethod::Spaces),
             );
         } else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/parse_style.rs 
new/delta-0.23.0/src/parse_style.rs
--- old/delta-0.22.0/src/parse_style.rs 2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/src/parse_style.rs 2026-11-28 19:50:07.000000000 +0100
@@ -188,6 +188,8 @@
             style.is_underline = true;
         } else if word == "line-number" || word == "file" || word == 
"omit-code-fragment" {
             // Allow: these are meaningful in hunk-header-style.
+        } else if word == "diffstat" {
+            // Allow: this is meaningful in file-style to delta tui.
         } else if !seen_foreground {
             if word == "syntax" {
                 is_syntax_highlighted = true;
@@ -405,6 +407,24 @@
             )
         );
     }
+
+    /// `diffstat` is meaningful in file-style to delta tui, and is ignored by 
delta.
+    #[test]
+    fn test_parse_ansi_term_style_with_special_diffstat_attribute() {
+        assert_eq!(
+            parse_ansi_term_style("diffstat bold blue", None, false, None),
+            (
+                ansi_term::Style {
+                    foreground: Some(ansi_term::Color::Blue),
+                    is_bold: true,
+                    ..ansi_term::Style::new()
+                },
+                false,
+                false,
+                false
+            )
+        );
+    }
 
     #[test]
     fn test_extract_special_decoration_attribute() {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/src/subcommands/gitu.rs 
new/delta-0.23.0/src/subcommands/gitu.rs
--- old/delta-0.22.0/src/subcommands/gitu.rs    2026-11-23 04:53:39.000000000 
+0100
+++ new/delta-0.23.0/src/subcommands/gitu.rs    2026-11-28 19:50:07.000000000 
+0100
@@ -1,5 +1,5 @@
-//! `delta --tui` (alias `--gitu`): gitu, an interactive git client and pager,
-//! with delta as its renderer.
+//! `delta tui`: gitu, an interactive git client and pager, with delta as its
+//! renderer. `delta --tui` and `delta --gitu`, as delta 0.22.0 ran it, still 
do.
 
 use std::ffi::OsString;
 use std::sync::Arc;
@@ -8,6 +8,7 @@
 use ::gitu::cli::Args;
 use ::gitu::config::{
     self, ColorMode, Config, EnabledFeatures, RendererGitConfig, 
RendererOptions,
+    RendererSideBySide,
 };
 use ::gitu::{error::Error, term, Res};
 use clap::{CommandFactory, FromArgMatches};
@@ -19,12 +20,12 @@
 Based on gitu by altsem (https://github.com/altsem/gitu), a git client 
inspired \
 by Magit, embedded via the delta-gitu fork 
(https://github.com/dandavison/gitu).";
 
-/// Where delta's own options go, for a user who gave them to `delta --tui`.
-const DELTA_OPTIONS_GO_IN_GIT_CONFIG: &str = "delta's own options cannot be 
given with --tui. \
+/// Where delta's own options go, for a user who gave them to `delta tui`.
+const DELTA_OPTIONS_GO_IN_GIT_CONFIG: &str = "delta's own options cannot be 
given with delta tui. \
 Set them in git config's [delta] section, or turn delta features on and off in 
the TUI with S, L and H.";
 
-/// Run gitu with `args`, which start after `--tui` or `--gitu`, returning the
-/// exit code.
+/// Run gitu with `args`, which start after `tui`, `--tui` or `--gitu`,
+/// returning the exit code.
 pub fn main(args: impl IntoIterator<Item = OsString>) -> i32 {
     let args = match parse(args) {
         Ok(args) => args,
@@ -56,10 +57,10 @@
 
 fn parse(args: impl IntoIterator<Item = OsString>) -> Result<Args, 
clap::Error> {
     let matches = Args::command()
-        .name("delta --tui")
-        .bin_name("delta --tui")
+        .name("delta tui")
+        .bin_name("delta tui")
         .about(ABOUT)
-        .try_get_matches_from(std::iter::once("delta 
--tui".into()).chain(args))?;
+        .try_get_matches_from(std::iter::once("delta 
tui".into()).chain(args))?;
     Args::from_arg_matches(&matches)
 }
 
@@ -81,12 +82,20 @@
     if args.next().is_some_and(|arg| is_tui(&arg)) {
         return None;
     }
-    args.any(|arg| is_tui(&arg)).then(|| {
-        format!("--tui must be delta's first argument, as in `delta --tui`. 
{DELTA_OPTIONS_GO_IN_GIT_CONFIG}")
+    args.any(|arg| is_tui_option(&arg)).then(|| {
+        format!("To run the TUI, tui must be delta's first argument, as in 
`delta tui`. {DELTA_OPTIONS_GO_IN_GIT_CONFIG}")
     })
 }
 
+/// Whether `arg`, as delta's first argument, runs the TUI: `tui`, as `git` and
+/// `rg` run those programs, or `--tui`, or its alias `--gitu`.
 pub fn is_tui(arg: &OsString) -> bool {
+    arg == "tui" || is_tui_option(arg)
+}
+
+/// Whether `arg` is `--tui` or its alias `--gitu`, which delta would take as 
one
+/// of its own options anywhere but first.
+fn is_tui_option(arg: &OsString) -> bool {
     arg == "--tui" || arg == "--gitu"
 }
 
@@ -143,7 +152,9 @@
 /// user's config enables, so gitu can show them as on and turn them off, how
 /// delta opens git config, so that gitu offers themes delta can find, and how 
to
 /// ask what the user's config sets options gitu draws with to, such as
-/// `comment-style`, so they are set as delta's own are.
+/// `comment-style`, so they are set as delta's own are, and how to ask whether
+/// delta draws side by side at a width, so that gitu lays out difftastic's 
view
+/// as delta draws it.
 fn tell_gitu_about_delta(config: &mut Config, opt: &crate::cli::Opt) {
     let renderer = &mut config.general.diff_renderer;
     renderer.color_mode = Some(color_mode(opt));
@@ -165,6 +176,23 @@
             option_lists(&env, GitConfig::try_create(&env), names)
         },
     );
+    renderer.side_by_side = RendererSideBySide::new(|dir, features, columns| {
+        let env = crate::env::DeltaEnv {
+            columns: Some(columns.to_string()),
+            ..options_env(dir, features)
+        };
+        draws_side_by_side(&env, GitConfig::try_create(&env))
+    });
+}
+
+/// Whether delta draws side by side in `env`, whose `COLUMNS` is the width it 
draws at: a
+/// minimum width such as `side-by-side = 120` must be met.
+fn draws_side_by_side(env: &crate::env::DeltaEnv, git_config: 
Option<GitConfig>) -> bool {
+    // gitu has the terminal, so delta must not ask it its background.
+    let args = ["delta", "--detect-dark-light=never"];
+    crate::cli::Opt::from_iter_and_git_config(env, args, git_config)
+        .computed
+        .side_by_side
 }
 
 /// delta's environment in `dir`, with `features` in force as `DELTA_FEATURES` 
gives them.
@@ -313,6 +341,27 @@
         assert!(message.contains("[delta]"), "{}", message);
     }
 
+    /// `delta tui` is `delta --tui`, as `delta git` and `delta rg` run git 
and rg: as delta's first
+    /// argument only, so that a file named tui after another is a file to 
diff.
+    #[test]
+    fn test_tui_as_the_first_argument_is_the_tui() {
+        assert!(is_tui(&"tui".into()));
+        // As delta 0.22.0 ran it.
+        assert!(is_tui(&"--tui".into()));
+        assert!(is_tui(&"--gitu".into()));
+        assert_eq!(misplaced_tui(os_args(&["delta", "tui"])), None);
+        assert_eq!(misplaced_tui(os_args(&["delta", "a", "tui"])), None);
+    }
+
+    #[test]
+    fn test_the_tuis_help_says_delta_tui() {
+        let help = parse(os_args(&["--help"]))
+            .unwrap_err()
+            .render()
+            .to_string();
+        assert!(help.contains("Usage: delta tui"), "{}", help);
+    }
+
     #[test]
     fn test_tui_after_other_arguments_says_it_must_come_first() {
         let message = misplaced_tui(os_args(&["delta", "--side-by-side", 
"--tui"])).unwrap();
@@ -394,6 +443,55 @@
         assert_eq!(git_config.get_bool("delta.mine.dark").ok(), Some(true));
     }
 
+    /// gitu is told whether delta draws side by side at a width, with 
features in force as
+    /// `DELTA_FEATURES` gives them, so that difftastic's view is laid out as 
delta draws it.
+    #[test]
+    fn test_gitu_is_told_whether_delta_draws_side_by_side_at_a_width() {
+        let cases = [
+            ("[delta]\n    side-by-side = 120\n", None, 119, false),
+            ("[delta]\n    side-by-side = 120\n", None, 120, true),
+            (
+                "[delta]\n    side-by-side = 120\n",
+                Some("-side-by-side"),
+                200,
+                false,
+            ),
+            ("[delta]\n", Some("+side-by-side"), 80, true),
+            ("[delta]\n", None, 200, false),
+        ];
+        for (git_config, features, columns, expected) in cases {
+            assert_eq!(
+                side_by_side_with(git_config, features, columns),
+                expected,
+                "{git_config:?} {features:?} {columns}"
+            );
+        }
+    }
+
+    /// Whether gitu is told delta draws side by side with `git_config` and 
`features` in force as
+    /// `DELTA_FEATURES` gives them, at a width of `columns`.
+    fn side_by_side_with(git_config: &str, features: Option<&str>, columns: 
usize) -> bool {
+        let path = std::env::temp_dir().join(format!(
+            "delta-gitu-test-side-by-side-{}-{:?}.gitconfig",
+            std::process::id(),
+            std::thread::current().id()
+        ));
+        let env = crate::env::DeltaEnv {
+            features: features.map(String::from),
+            columns: Some(columns.to_string()),
+            ..crate::env::DeltaEnv::default()
+        };
+        let git_config = crate::tests::integration_test_utils::make_git_config(
+            &env,
+            git_config.as_bytes(),
+            path.to_str().unwrap(),
+            false,
+        );
+        let side_by_side = draws_side_by_side(&env, Some(git_config));
+        fs::remove_file(path).unwrap();
+        side_by_side
+    }
+
     /// gitu is told the features the user's config enables, so that it shows 
them
     /// as on and turns them off when toggled.
     #[test]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/delta-0.22.0/tests/tui.rs 
new/delta-0.23.0/tests/tui.rs
--- old/delta-0.22.0/tests/tui.rs       2026-11-23 04:53:39.000000000 +0100
+++ new/delta-0.23.0/tests/tui.rs       2026-11-28 19:50:07.000000000 +0100
@@ -16,8 +16,11 @@
 
 #[test]
 fn test_tui_help_uses_tui() {
-    let help = String::from_utf8(delta(&["--tui", "--help"]).stdout).unwrap();
-    assert!(help.contains("Usage: delta --tui"), "{}", help);
+    // --tui, as delta 0.22.0 ran the TUI, still does.
+    for tui in ["tui", "--tui"] {
+        let help = String::from_utf8(delta(&[tui, "--help"]).stdout).unwrap();
+        assert!(help.contains("Usage: delta tui"), "{}", help);
+    }
 }
 
 // FIXME: stop ignoring this when delta depends on a delta-gitu that has 
--agent-instructions, and
@@ -27,7 +30,7 @@
 fn test_agent_instructions_are_the_tuis() {
     let text = 
String::from_utf8(delta(&["--agent-instructions"]).stdout).unwrap();
     assert!(text.starts_with("---\nname: "), "{}", text);
-    let tui = String::from_utf8(delta(&["--tui", 
"--agent-instructions"]).stdout).unwrap();
+    let tui = String::from_utf8(delta(&["tui", 
"--agent-instructions"]).stdout).unwrap();
     assert_eq!(text, tui);
 }
 

++++++ vendor.tar.zst ++++++
/work/SRC/openSUSE:Factory/git-delta/vendor.tar.zst 
/work/SRC/openSUSE:Factory/.git-delta.new.1340718/vendor.tar.zst differ: char 
7, line 1

Reply via email to