gitdiff

command
v0.0.0-...-f3070e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

gitdiff is a tool that can be used with git using GIT_EXTERNAL_DIFF.

This is not generally useful and it has some weird defaults. The use case for it is to work with the slider evaluation in https://github.com/mhagger/diff-slider-tools. The evaluation can be used with a small local modification of the repositories run-comparison script:

Adding this snippet

git_znkr() {
   GIT_EXTERNAL_DIFF=${HOME}/Projects/diff/gitdiff git -C corpus/$1.git $GIT_OPTS diff "$2" "$3" --
}

allows us to compare against git's implementation of indent heuristics. The comparison is not 100% because we sometimes return different diffs than git, but overall the quality of the result is about the same.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL