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

dandavison / delta / 43116101916
66%
master: 59%

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

11 Nov 2026 10:58PM UTC coverage: 66.234% (+0.6%) from 65.586%
43116101916

push

github

web-flow
Keep the user's settings when using builtin features (#2326)

* Test how switches and styles combine with the user's own settings

The tests say what a switch (side-by-side, line-numbers, keep-plus-minus-markers, navigate,
hyperlinks) and a style (raw, color-only, diff-highlight, diff-so-fancy) do to the user's own
settings, wherever they are turned on. Five of the ten tests fail on this branch:

- --line-numbers, --keep-plus-minus-markers, --navigate and --hyperlinks do not take =false.
- DELTA_FEATURES=+name and --features with the switch added still let the builtin side-by-side,
  line-numbers and navigate features override the user's line-number formats, styles and labels.

cargo test test_switches_and_styles

* Test that --navigate=false beats DELTA_NAVIGATE, and that bare switch flags keep their meaning

A bare flag means on, does not take the files after it, and -n combines with -s. This holds now
and must keep holding once the switches take =false.

cargo test test_switches_and_styles

* Let the switches take =false, so the command line can turn off a switch that git config turns on

--line-numbers, --keep-plus-minus-markers, --navigate and --hyperlinks take an optional =true or
=false, as --side-by-side does, and so do the styles --diff-highlight and --diff-so-fancy. --raw
and --color-only still take no value. A bare flag still means true, and the value must be joined
by =, so a flag does not take the file after it, and -n still combines with -s as -ns or -sn.
--navigate=false also beats DELTA_NAVIGATE.

cargo test test_switches_and_styles

* Test that a section with the same name as a builtin feature applies whenever the builtin is on

A section such as [delta "side-by-side"] or [delta "navigate"] must add to the builtin: their settings apply whenever it is on, however it was turned on, and beat the builtin's
own settings and the user's other features. Today another feature of the user's beats the section
when the builtin is turned on in git... (continued)

43 of 55 new or added lines in 2 files covered. (78.18%)

28 existing lines in 17 files now uncovered.

2703 of 4081 relevant lines covered (66.23%)

1.86 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
68.57
4.06% src/options/get.rs
2
90.4
0.63% src/options/set.rs

Coverage Regressions

Lines Coverage ∆ File
5
41.73
-1.18% src/wrapping.rs
3
84.56
-0.93% src/parse_styles.rs
2
76.04
-1.04% src/ansi/mod.rs
2
46.4
0.8% src/edits.rs
2
90.0
-6.43% src/git_config/remote.rs
2
75.56
-2.22% src/handlers/merge_conflict.rs
2
53.92
-3.22% src/style.rs
1
78.72
-2.53% src/features/diff_line_metadata.rs
1
49.69
0.62% src/features/side_by_side.rs
1
55.45
9.29% src/format.rs
1
77.19
0.27% src/git_config/mod.rs
1
69.37
-0.63% src/handlers/blame.rs
1
94.05
-0.46% src/handlers/diff_header.rs
1
90.57
4.6% src/handlers/draw.rs
1
70.52
-0.58% src/handlers/grep.rs
1
90.4
0.63% src/options/set.rs
1
53.55
0.75% src/paint.rs
Jobs
ID Job ID Ran Files Coverage
1 43116101916.1 11 Nov 2026 11:01PM UTC 65
66.23
GitHub Action Run
Source Files on build 43116101916
  • Tree
  • List 65
  • Changed 34
  • Source Changed 0
  • Coverage Changed 34
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 59cf0632 on github
  • Prev Build on main (#43037664529)
  • Next Build on main (#43238522419)
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