• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dandavison / delta / 42650483966
66%
master: 59%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 09 Nov 2026 04:04PM UTC
Jobs 1
Files 65
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Nov 2026 04:01PM UTC coverage: 65.461% (-0.2%) from 65.654%
42650483966

push

github

web-flow
Side by side hunk (#2304)

* Apply the side-by-side minimum width to --width

The minimum width of --side-by-side=N was compared with the terminal
width only. When delta's output is captured instead of written to a
terminal, as by tools that run delta as a diff tool (e.g. jj), delta
cannot measure the terminal and falls back to 80 columns. Such a tool
can pass the width with --width, and delta paints at that width, but
still disabled side-by-side.

Compare the minimum with --width when it is a number, otherwise with
the terminal width. The width is resolved once, before the features
are gathered, so that the side-by-side feature and the side-by-side
layout follow the same decision.

AI-assisted: Claude Code (Claude Opus 5.5)

* Track the side-by-side layout in the painter

Painting decided between side-by-side and unified layout by reading
config.side_by_side, which is fixed for the whole run. Keep the
layout in a Painter field instead, initialized from the config and
passed down to paint_minus_and_plus_lines, so that it can later be
changed between hunks.

The line numbers code now tells the layouts apart by whether it
paints a side-by-side panel, which is equivalent: unified lines are
always painted without a panel and side-by-side lines always with
one.

No change in behavior.

AI-assisted: OpenCode (Claude Opus 5.5)

* Add --side-by-side=hunk to switch layout per hunk

Side-by-side view helps to compare removed lines with the lines that
replaced them. A hunk that only adds lines, such as every hunk of a
new file, gains nothing from it: the left panel is empty and the
code gets half of the terminal width.

With --side-by-side=hunk (or side-by-side = hunk in gitconfig), delta
displays side-by-side only the hunks that both remove and add lines,
and the others in a single column, like difftastic does. It overloads
the existing option rather than adding a new one, and names how far
the decision reaches, which leaves room for a per-file variant. The
opt... (continued)

94 of 128 new or added lines in 9 files covered. (73.44%)

29 existing lines in 12 files now uncovered.

2642 of 4036 relevant lines covered (65.46%)

1.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
62.14
-6.48% src/delta.rs
11
44.8
1.44% src/features/line_numbers.rs
2
89.77
1.03% src/options/set.rs
1
52.81
0.09% src/paint.rs

Coverage Regressions

Lines Coverage ∆ File
6
82.68
3.42% src/config.rs
6
52.81
0.09% src/paint.rs
4
44.0
-2.83% src/edits.rs
3
41.34
-0.39% src/wrapping.rs
2
48.43
-1.26% src/features/side_by_side.rs
2
70.0
-1.82% src/handlers/blame.rs
1
75.26
-1.03% src/ansi/mod.rs
1
62.14
-6.48% src/delta.rs
1
75.44
-0.03% src/git_config/mod.rs
1
84.38
-3.13% src/handlers/submodule.rs
1
48.39
-3.23% src/subcommands/diff.rs
1
36.84
-2.05% src/subcommands/external.rs
Jobs
ID Job ID Ran Files Coverage
1 42650483966.1 09 Nov 2026 04:04PM UTC 65
65.46
GitHub Action Run
Source Files on build 42650483966
  • Tree
  • List 65
  • Changed 32
  • Source Changed 0
  • Coverage Changed 32
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c4e9a8df on github
  • Prev Build on main (#42634779686)
  • Next Build on main (#42828468067)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc