feat(tools): #466 delta (git-delta) opt-in installer - #501
Merged
Conversation
- scripts/linux/tools/delta.sh: apt-first (Ubuntu 22.04+), tarball fallback for older/non-apt Linux; brew for macOS. Version-aware idempotent install. apply_delta_git_config() is separately-testable via BASH_SOURCE guard. - scripts/windows/tools/delta.ps1: winget (dandavison.delta), scoop fallback. Invoke-DeltaGitConfig() separately-testable function. - scripts/windows/setup.ps1: delta wired into ToolRegistry only (NOT DefaultTools) -- opt-in, selectable via -Only 'delta'. - .tool-versions: pin delta 0.19.2 (verified latest stable, 2026-03-28). - tests/test_delta_installer.sh + tests/test_delta_installer_pwsh.ps1: parity test pair -- opt-in discovery, git-config isolation (GIT_CONFIG_GLOBAL), idempotency. RED confirmed pre-impl; GREEN 4/4 pwsh post-impl. git config applied: core.pager=delta, interactive.diffFilter='delta --color-only', delta.navigate=true, delta.dark=true (light-mode override documented in comment), merge.conflictStyle=zdiff3. Closes #466 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Rename Invoke-DeltaGitConfig -> Set-DeltaGitConfig (spec-consistency; approved PS verb). Add [CmdletBinding(SupportsShouldProcess)] to silence PSUseShouldProcessForStateChangingFunctions (0 issues on delta.ps1). - Add trailing LF to scripts/linux/tools/delta.sh and tests/test_delta_installer.sh (POSIX text-file requirement). PSScriptAnalyzer (delta.ps1): 0 issues. PSScriptAnalyzer (CI paths setup.ps1 x2): 0 issues. Parity suite: 4/4 pwsh PASS. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
primetimetank21
marked this pull request as ready for review
July 13, 2026 01:01
This was referenced Jul 13, 2026
primetimetank21
added a commit
that referenced
this pull request
Jul 25, 2026
* feat(tools): #466 delta (git-delta) opt-in installer - scripts/linux/tools/delta.sh: apt-first (Ubuntu 22.04+), tarball fallback for older/non-apt Linux; brew for macOS. Version-aware idempotent install. apply_delta_git_config() is separately-testable via BASH_SOURCE guard. - scripts/windows/tools/delta.ps1: winget (dandavison.delta), scoop fallback. Invoke-DeltaGitConfig() separately-testable function. - scripts/windows/setup.ps1: delta wired into ToolRegistry only (NOT DefaultTools) -- opt-in, selectable via -Only 'delta'. - .tool-versions: pin delta 0.19.2 (verified latest stable, 2026-03-28). - tests/test_delta_installer.sh + tests/test_delta_installer_pwsh.ps1: parity test pair -- opt-in discovery, git-config isolation (GIT_CONFIG_GLOBAL), idempotency. RED confirmed pre-impl; GREEN 4/4 pwsh post-impl. git config applied: core.pager=delta, interactive.diffFilter='delta --color-only', delta.navigate=true, delta.dark=true (light-mode override documented in comment), merge.conflictStyle=zdiff3. Closes #466 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * refactor(tools): #466 rename Set-DeltaGitConfig + trailing newlines - Rename Invoke-DeltaGitConfig -> Set-DeltaGitConfig (spec-consistency; approved PS verb). Add [CmdletBinding(SupportsShouldProcess)] to silence PSUseShouldProcessForStateChangingFunctions (0 issues on delta.ps1). - Add trailing LF to scripts/linux/tools/delta.sh and tests/test_delta_installer.sh (POSIX text-file requirement). PSScriptAnalyzer (delta.ps1): 0 issues. PSScriptAnalyzer (CI paths setup.ps1 x2): 0 issues. Parity suite: 4/4 pwsh PASS. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(tools): #466 delta (git-delta) opt-in installer
Closes #466
Files Added / Modified
scripts/linux/tools/delta.shscripts/windows/tools/delta.ps1dandavison.delta), scoop fallbackscripts/windows/setup.ps1.tool-versionsdelta 0.19.2tests/test_delta_installer.shtests/test_delta_installer_pwsh.ps1Opt-in Wiring
Delta is NOT added to
DEFAULT_TOOLS(Linux) or$DefaultTools(Windows).It is wired only into the Windows
$ToolRegistry(required for that platform'sexplicit-registry model). On Linux, directory auto-discovery picks it up.
Selectable via
--only=delta(Linux/macOS) or-Only 'delta'(Windows).Git Config Applied (idempotent)
Version Pinned
delta 0.19.2-- verified latest stable fromhttps://api.github.com/repos/dandavison/delta/releases/latest(published 2026-03-28).
Linux tarball asset naming confirmed:
delta-0.19.2-x86_64-unknown-linux-gnu.tar.gzdelta-0.19.2-aarch64-unknown-linux-gnu.tar.gzTests (TDD -- RED then GREEN)
RED (pre-implementation):
T_delta_in_listFAIL (delta.ps1 not registered)T_delta_gitconfig_isoFAIL (delta.ps1 not found)T_delta_gitconfig_idemFAIL (delta.ps1 not found)T_delta_not_defaultPASS (correctly opt-in even before implementation)GREEN (post-implementation):
tests cover the same 4 scenarios with GIT_CONFIG_GLOBAL isolation.
shellcheck: CLEAN (all SC2030/2031/2329 suppressions are intentional).
Existing test_setup_flags_pwsh.ps1: 36/36 PASS (no regressions).
PSScriptAnalyzer (CI paths: setup.ps1 + scripts/windows/setup.ps1): 0 issues.