Git/delta

From Omnia
< Git
(Redirected from Git-delta)
Jump to navigation Jump to search

git-delta

git-delta
https://dandavison.github.io/delta/
A syntax-highlighting pager for git, diff, and grep output

Gitconfig

~/.gitconfig :

[core]
    pager = delta

[interactive]
    diffFilter = delta --color-only

[delta]
    navigate = true

[merge]
    conflictstyle = diff3

[diff]
    colorMoved = default

Better:

pager = delta --line-numbers --dark --side-by-side
[core]
    pager = delta

[interactive]
    diffFilter = delta --color-only --features=interactive

[delta]
    features = decorations

[delta "interactive"]
    keep-plus-minus-markers = false

[delta "decorations"]
    commit-decoration-style = blue ol
    commit-style = raw
    file-style = omit
    hunk-header-decoration-style = blue box
    hunk-header-file-style = red
    hunk-header-line-number-style = "#067a00"
    hunk-header-style = file line-number syntax

Better:

    features = side-by-side decorations

ref: https://dandavison.github.io/delta/get-started.html

ref: https://dandavison.github.io/delta/configuration.html

Installation

Release page:

https://github.com/dandavison/delta/releases
wget https://github.com/dandavison/delta/releases/download/0.16.5/git-delta_0.16.5_amd64.deb
dpkg -i git-delta_0.16.5_amd64.deb

ref: https://dandavison.github.io/delta/installation.html

Compare two files or folders

delta file1 file2
delta folder1 folder2

Manual

https://dandavison.github.io/delta/configuration.html

--

mdless /usr/share/doc/git-delta/README.md

See mdless

Articles

Delta: A new git diff tool to rock your productivity - DEV Community
https://dev.to/cloudx/delta-a-new-git-diff-tool-to-rock-your-productivity-2773

keywords