Git: Use patience for on-screen diffs, minimal for patches and histogram as a default.

This commit is contained in:
Dmitry Voronin 2024-12-18 07:32:27 +03:00
parent 46e94916f6
commit 44db743176
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 3 additions and 2 deletions

View file

@ -12,5 +12,6 @@
rebase.autoStash = true;
safe.directory = "*";
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
diff.algorithm = "histogram";
};
}

View file

@ -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.