Summary: A viewer for git and diff output Name: delta Version: 0.5.0 Release: 1 License: MIT Group: Applications Source0: https://github.com/dandavison/delta/archive/%{version}/%{name}-%{version}.tar.gz # Source0-md5: d75f73bc71407b86489eff88f837274d # cd delta-%{version} # cargo vendor # cd .. # tar cJf delta-crates-%{version}.tar.xz delta-%{version}/{vendor,Cargo.lock} Source1: %{name}-crates-%{version}.tar.xz # Source1-md5: 55f896f9511f16f17d8d209d903904f1 URL: https://github.com/dandavison/delta BuildRequires: cargo BuildRequires: rust BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Delta aims to make studying diffs both efficient and enjoyable: it allows you to make extensive changes to the layout and styling of diffs, as well as allowing you to stay arbitrarily close to the default git/diff output, changing just the aspects that you want to change. Delta's main features are: - Language syntax highlighting with color themes - Within-line highlights based on a Levenshtein edit inference algorithm - Style (foreground color, background color, font attributes) can be configured independently for more than 20 different sections of the diff - Stylable box/line decorations to draw attention to commit, file and hunk header sections. - Line numbering (`-n`) - `--diff-highlight` and `--diff-so-fancy` emulation modes - Code can be copied directly from the diff (`-/+` markers are removed by default). - `n` and `N` keybindings to move between files in large diffs, and between diffs in `log -p` views (`--navigate`) A viewer for git and diff output. %prep %setup -q -b1 # use our offline registry export CARGO_HOME="$(pwd)/.cargo" mkdir -p "$CARGO_HOME" cat >.cargo/config <