diff --git a/home/file/git/default.nix b/home/file/git/default.nix index b09d8df..816d599 100644 --- a/home/file/git/default.nix +++ b/home/file/git/default.nix @@ -12,5 +12,6 @@ rebase.autoStash = true; safe.directory = "*"; user.signingkey = builtins.readFile secret.crypto.sign.git.key; + diff.algorithm = "histogram"; }; } diff --git a/home/program/bash/module/Git.nix b/home/program/bash/module/Git.nix index 231b5a6..903c347 100644 --- a/home/program/bash/module/Git.nix +++ b/home/program/bash/module/Git.nix @@ -48,12 +48,12 @@ # Git diff. function gd() { - git diff "''${@}" + git diff --patience "''${@}" } # Git diff added. function gda() { - git diff --cached "''${@}" + git diff --cached --patience "''${@}" } # Git commit.