Skip to content
CAI
Software that uses CAICheck a score

dandavison/delta

62.6

Adequate · 14 November 2026

26.8k

lines of production code

Rust

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add shell completion scripts for Bash, Fish, and Zsh

New completion files have been added to etc/completion for Bash, Fish, and Zsh, enabling tab-completion for delta's command-line options and arguments. These scripts provide autocompletion for flags such as --blame-format, --syntax-theme, and --paging, as well as file path completion for diff inputs, improving the interactive command-line experience for users of these shells.

etc/completion · high confidence

Added diagnostic and configuration helper scripts for delta

New shell scripts have been added to the bin directory to assist with troubleshooting and configuration management for the delta tool. The diagnostics script runs a series of commands to check versions, environment variables, and ANSI color support. The list-options script extracts and filters delta's command-line options, and the check-show-config-options script compares listed options against the current configuration.

etc/bin · high confidence

Initial project scaffolding and documentation

The repository is initialized with core project files including a Makefile for building, testing, and benchmarking, a MIT LICENSE, and comprehensive documentation (README, ARCHITECTURE, CONTRIBUTING). A themes.gitconfig file is added to provide a collection of configurable syntax-highlighting themes for the delta pager, and .gitattributes/.gitignore are configured to manage repository metadata and build artifacts.

(repo-wide) · high confidence

Introduce a modular feature system for delta configuration

Delta now uses a new modular feature system where display modes (such as side-by-side, line numbers, hyperlinks, diff-highlight, diff-so-fancy, navigate, raw, and color-only) are implemented as composable, named features. Users can enable these capabilities via command-line flags (e.g., --side-by-side, --line-numbers) or by listing them in the git config \delta.features\ key. Features can be combined, and their settings can be overridden by git config entries or command-line arguments, with later features in the list taking precedence for conflicting options. This replaces the previous flat flag-based configuration with a more flexible and extensible architecture.

src/features · high confidence

New Docker environment for building and running Delta on Ubuntu

A new Docker setup has been added to the project to facilitate investigating OS-dependent issues with Delta. This includes an Ubuntu-based Dockerfile that installs necessary build tools (curl, git, less, gcc), sets up the Rust toolchain, clones the Delta repository, and compiles it from source. A Makefile target and a convenience script are provided to easily build the 'delta-ubuntu' image and run Delta within it.

etc/docker · high confidence

New alignment module for edit distance computation

A new \src/align.rs\ module has been added to implement the Needleman-Wunsch / Wagner-Fischer algorithm for computing edit distance and alignment between token sequences. This module introduces an \Alignment\ struct and an \Operation\ enum (NoOp, Deletion, Insertion) to track the specific edit operations required to transform one sequence into another. It also includes a \run\_length\_encode\ helper to coalesce consecutive identical operations, providing the foundational logic for line-pairing and edit inference in the diff processing pipeline.

src · high confidence

New release automation Makefile

A new release automation script (etc/release.Makefile) has been added to streamline the release process. It defines targets to check the environment, bump the version in Cargo.toml, create a GitHub release tag, and update version references in the documentation (manual/src/full---help-output.md and manual/src/installation.md).

etc · high confidence

New subcommands for external tools, configuration inspection, and theme preview

The \src/subcommands\ module now exposes several new capabilities: you can pipe output from external tools like \git\ (e.g., \git show\, \git diff\) or \ripgrep\ (\rg\) directly into delta for enhanced viewing; inspect your current configuration with \--show-config\ (which now includes \diff-stat-align-width\ and \right-arrow\ settings); preview available syntax themes with \--show-syntax-themes\ (supporting both light and dark modes) or list them with \--show-syntax-themes\ in machine-readable format; and generate shell completion scripts for your preferred shell. Additionally, \--show-themes\ now exits with an error if no themes are found, and \--show-colors\ provides a visual reference for all supported color groups.

src/subcommands · high confidence

Architecture

Refactor diff output handling into modular handlers

The internal logic for processing git output has been restructured from a monolithic state machine into a set of dedicated handler modules (blame, commit\_meta, diff\_header, grep, hunk, hunk\_header, merge\_conflict, etc.). This change improves code maintainability and separation of concerns without altering the external user-facing behavior of the tool.

src/handlers · high confidence

Behavioural changes

Automated Debian package generation for Linux releases

The CI pipeline now automatically builds and packages the release binary into a Debian (.deb) package for Linux targets. This change introduces a new \before\_deploy.sh\ script that handles the creation of the package structure, including the binary, documentation, and license, while explicitly requesting xz compression for the final archive. It also ensures the package correctly declares dependencies and conflicts with the musl variant to prevent installation issues.

etc/ci · high confidence

Improved help text wrapping and process detection reliability

The help output now wraps more accurately by respecting indentation, bullet points, and explicit no-wrap markers, ensuring complex command-line help displays correctly across different terminal widths. Additionally, the tool now detects its calling process (such as git or grep) in a background thread, which prevents the application from blocking while waiting for process information, and path resolution logic has been refined to correctly handle relative paths based on the caller's context.

src/utils · high confidence

Integrate bat library for syntax highlighting and pager management

The \src/utils/bat\ module introduces a new integration with the \bat\ library to handle syntax highlighting assets and terminal output. This change adds support for listing available languages with proper formatting and colorization, manages cache directories following XDG standards (particularly on macOS), and improves pager behavior by correctly parsing the \less\ version to handle Nerd Fonts and terminal compatibility. It also standardizes how the pager is launched and configured, ensuring consistent output handling across different environments.

src/utils/bat · high confidence

Refactored option resolution and introduced dedicated light/dark mode detection

The options system has been restructured into a modular architecture (get, set, theme, option\_value) to improve how configuration values are resolved and applied. A key behavioral change is the introduction of a dedicated light/dark mode concept, separate from the syntax theme; the application now detects the terminal's color scheme (using the terminal-colorsaurus library) and allows users to explicitly override it with --light or --dark flags. This detection logic is applied early, ensuring that syntax themes are correctly interpreted as light or dark based on their names or explicit settings. Additionally, the option lookup order has been standardized to prioritize git config values, then feature-specific overrides, and finally defaults, with environment variables able to override git config settings.

src/options · high confidence

Support for GitLab subgroups and SourceHut tilde-style URLs in remote repository detection

The git\_config module now correctly parses remote URLs for GitLab repositories that include subgroup paths (e.g., \proj/grp/subgrp/repo\) and SourceHut repositories using the tilde-prefix username format (e.g., \\~user/repo\). This ensures that hyperlink generation for commits works accurately for these specific hosting configurations, which were previously not fully supported by the URL parsing logic.

_src/git\config · high confidence

Switch ANSI parsing engine from vte to anstyle-parse

The internal ANSI escape sequence parser in the \src/ansi\ module has been replaced with \anstyle-parse\. This change updates the underlying implementation used by functions like \truncate\_str\, \measure\_text\_width\, and \strip\_ansi\_codes\, ensuring that text width calculations and truncation logic correctly handle ANSI styling codes. The switch also introduces support for CSI sequences beyond standard SGR (Select Graphic Rendition) commands, allowing the tool to process a broader range of terminal escape sequences without breaking text layout.

src/ansi · high confidence

Test coverage

Added shell-based integration tests for deprecated options, navigate/less history, and raw output; Expanded test fixtures for complex diff scenarios; New test infrastructure and snapshot testing support.

Dependencies

Update dependencies and lockfile for git-delta 0.19.2

This release updates the project's dependency tree and generates a fresh Cargo.lock file. Key library upgrades include clap to v4.3.14, bat to v0.26.0, git2 to v0.20.0, syntect to v5.0.0, and sysinfo to v0.29.0. The project also migrates from the deprecated \error-chain\ crate to \anyhow\ and replaces the unmaintained \dirs\ crate with \dirs-next\ (pinned at v6.0.0). Additionally, the \atty\ crate is replaced by the standard library's \IsTerminal\ trait, and \structopt\ is fully replaced by \clap\'s derive features.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 63 → 63 (-0.9)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 90 → 87 (-3.2)
  • Architecture 89 → 99 (+10.7)
  • Maturity 65 → 65 (+0.2)
  • Readiness 52 → 52 (-0.0)
  • Security 70 → 63 (-7.0)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (12)

  • Duplicated block (20 lines × 2) (src/parse_styles.rs)
  • Further orphaned files (smaller)
  • No ADRs found
  • Orphaned file (src/format.rs)
  • Orphaned file (src/subcommands/external.rs)
  • Orphaned file (src/subcommands/sample_diff.rs)
  • Orphaned file (src/utils/helpwrap.rs)
  • Orphaned knowledge (src/utils/process.rs)
  • Projects may be oversized for their cohesion
  • TodoComment (src/options/set.rs)
  • git_delta::options::set::gather_builtin_features_recursively (cognitive 20) (src/options/set.rs)
  • git_delta::options::set::gather_features (cyclomatic 19) (src/options/set.rs)

New (26)

  • Edited copy of a member (10 corresponding lines) (src/handlers/merge_conflict.rs)
  • Edited copy of a member (23 corresponding lines) (src/handlers/diff_header.rs)
  • Edited copy of a member (30 corresponding lines) (src/parse_style.rs)
  • FileTooLong: options/set.rs (src/options/set.rs)
  • Hotspot: src/config.rs (src/config.rs)
  • Hotspot: src/options/set.rs (src/options/set.rs)
  • Low coverage: src/colors.rs (src/colors.rs)
  • Low coverage: src/features/navigate.rs (src/features/navigate.rs)
  • Low coverage: src/handlers/diff_stat.rs (src/handlers/diff_stat.rs)
  • Low coverage: src/handlers/git_show_file.rs (src/handlers/git_show_file.rs)
  • Low coverage: src/main.rs (src/main.rs)
  • Low coverage: src/subcommands/generate_completion.rs (src/subcommands/generate_completion.rs)
  • Low coverage: src/subcommands/parse_ansi.rs (src/subcommands/parse_ansi.rs)
  • Low coverage: src/subcommands/show_colors.rs (src/subcommands/show_colors.rs)
  • Low coverage: src/subcommands/show_syntax_themes.rs (src/subcommands/show_syntax_themes.rs)
  • Low coverage: src/subcommands/show_themes.rs (src/subcommands/show_themes.rs)
  • Low coverage: src/utils/bat/assets.rs (src/utils/bat/assets.rs)
  • Low coverage: src/utils/bat/output.rs (src/utils/bat/output.rs)
  • Low coverage: src/utils/bat/terminal.rs (src/utils/bat/terminal.rs)
  • Low coverage: src/utils/round_char_boundary.rs (src/utils/round_char_boundary.rs)
  • …and 6 more

Changes since last survey

  • 12 commits — 8 feature/other, 4 fixes

By area

  • src/options — 4 commits
  • src/features — 3 commits
  • (root) — 2 commits
  • manual/src — 2 commits
  • src/handlers — 1 commit

Notable commits

  • fix: Bug fix: make a style feature in a features list work (#2331)
  • fix: Bug fix: syntax-highlight deleted files where appropriate (#2322)
  • fix: Fix broken CI badge in README by pointing it at the ci.yml workflow
  • fix: Switch feature fixes (#2330)
  • change: Allow CLI --side-by-side to disable a feature enabled in git config (#2319)
  • change: Correct tmux hyperlink support documentation (#2324)
  • change: Keep the user's settings when using builtin features (#2326)
  • change: Let --side-by-side keep the line-number formats from the user's features (#2321)
  • change: Paint line numbers in the style of their line (#2332)
  • change: Side by side hunk (#2304)
  • change: Update colibri theme and add colibri-colorblind (#2329)
  • change: feat: Adds min-width parameter to enable toggling of side-by-side based on terminal width (#2084)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

dandavison/delta was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 02ff175b7bf70a08d4a1b3c56612b9093852b794 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-36d4cd83012f.