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

dandavison / delta / 42514876394
66%
master: 59%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 08 Nov 2026 07:27PM 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

08 Nov 2026 07:24PM UTC coverage: 65.328% (-0.6%) from 65.931%
42514876394

push

github

web-flow
Allow CLI --side-by-side to disable a feature enabled in git config (#2319)

* Test that --side-by-side=false turns off the side-by-side feature that git config or DELTA_FEATURES turns on

The command line beat git config for the side-by-side option itself, but the side-by-side feature
was still gathered from git config, so --side-by-side=false gave a unified view with
side-by-side's line numbers.

cargo test side_by_side_off_on_the_command_line

* Let --side-by-side=false turn off the side-by-side feature that git config turns on, so the view is plain unified

The side-by-side feature is what the side-by-side option turns on. The command line decided the
option but not the feature, which was still gathered from git config or DELTA_FEATURES and brought
line numbers in side-by-side's format to the unified view. Now a feature whose option the command
line turns off is not gathered from anywhere.

cargo test side_by_side_off_on_the_command_line

* Test that -name in DELTA_FEATURES removes a feature that git config turns on

delta --tui toggles features by adding them to DELTA_FEATURES, which could not turn off a feature,
or the option a builtin feature is named after, that the user's git config turns on: S did nothing
for a user with side-by-side = true.

cargo test test_delta_features_removes_features

* Let -name in DELTA_FEATURES and --features remove a feature, so a feature git config turns on can be turned off

Removing a builtin feature named after an option, such as side-by-side or line-numbers, also turns
off that option, and a removed feature is not used from git config, a theme or another feature.
The command line still beats DELTA_FEATURES. delta --tui can now toggle any feature off and on.

cargo test test_delta_features_removes_features

* Keep the options that turn on a builtin feature of the same name in one table, so a new one is added in one place

The names were listed in a constant, in a function turning removed features' options off, ... (continued)

13 of 16 new or added lines in 1 file covered. (81.25%)

23 existing lines in 16 files now uncovered.

2587 of 3960 relevant lines covered (65.33%)

1.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
87.92
-3.11% src/options/set.rs

Coverage Regressions

Lines Coverage ∆ File
4
43.65
-2.75% src/edits.rs
2
48.75
-0.94% src/features/side_by_side.rs
2
71.1
-0.58% src/handlers/grep.rs
2
64.52
-6.45% src/options/get.rs
2
51.95
-0.25% src/paint.rs
1
75.53
-0.51% src/ansi/mod.rs
1
53.23
-1.61% src/cli.rs
1
46.34
-4.82% src/color.rs
1
78.72
-2.53% src/features/diff_line_metadata.rs
1
43.36
-0.88% src/features/line_numbers.rs
1
84.38
0.5% src/handlers/submodule.rs
1
30.3
-0.95% src/options/option_value.rs
1
87.92
-3.11% src/options/set.rs
1
56.16
-0.39% src/utils/process.rs
1
50.0
0.0% src/utils/syntect.rs
1
41.73
-0.39% src/wrapping.rs
Jobs
ID Job ID Ran Files Coverage
1 42514876394.1 08 Nov 2026 07:27PM UTC 65
65.33
GitHub Action Run
Source Files on build 42514876394
  • Tree
  • List 65
  • Changed 26
  • Source Changed 0
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ae44d3f0 on github
  • Prev Build on main (#42509340494)
  • Next Build on main (#42634779686)
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