Use option to configure diff-so-fancy
This commit is contained in:
parent
4944b21be7
commit
a3cad64c9b
1 changed files with 3 additions and 1 deletions
|
|
@ -10,9 +10,11 @@
|
|||
key = "3044E71E3DEFF49B586CF5809BF4FCCB90854DA9";
|
||||
signByDefault = false;
|
||||
};
|
||||
diff-so-fancy = {
|
||||
enable = true;
|
||||
};
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
core.pager = "${pkgs.diff-so-fancy}/bin/diff-so-fancy | less --tabs=4 -RFX";
|
||||
diff.sops.textconv = "${pkgs.sops}/bin/sops -d";
|
||||
pull.ff = "only";
|
||||
alias.find-merge = "!sh -c 'commit=$0 && branch=\${1:-HEAD} && (git rev-list $commit..$branch --ancestry-path | cat -n; git rev-list $commit..$branch --first-parent | cat -n) | sort -k2 -s | uniq -f1 -d | sort -n | tail -1 | cut -f2'";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue