git: add basic support for delta

PR #1198
This commit is contained in:
Mario Rodas 2020-04-26 04:20:00 -05:00 committed by Robert Helgesson
parent 03b4f81679
commit cba7b6ee6e
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
4 changed files with 51 additions and 0 deletions

View file

@ -6,6 +6,9 @@
[commit]
gpgSign = true
[core]
pager = "@deltaCommand@ --dark"
[extra]
boolean = true
integer = 38
@ -28,6 +31,9 @@
[gpg]
program = "path-to-gpg"
[interactive]
diffFilter = "@deltaCommand@ --dark --color-only"
[user]
email = "user@example.org"
name = "John Doe"

View file

@ -15,6 +15,8 @@ let
pkgs.substituteAll {
src = path;
deltaCommand = "${pkgs.gitAndTools.delta}/bin/delta";
git_include_path = pkgs.writeText "contents"
(builtins.readFile ./git-expected-include.conf);
};
@ -56,6 +58,10 @@ in {
userEmail = "user@example.org";
userName = "John Doe";
lfs.enable = true;
delta = {
enable = true;
options = [ "--dark" ];
};
}
{