Git: Use patience for on-screen diffs, minimal for patches and histogram as a default.
This commit is contained in:
parent
46e94916f6
commit
44db743176
|
@ -12,5 +12,6 @@
|
||||||
rebase.autoStash = true;
|
rebase.autoStash = true;
|
||||||
safe.directory = "*";
|
safe.directory = "*";
|
||||||
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
||||||
|
diff.algorithm = "histogram";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,12 +48,12 @@
|
||||||
|
|
||||||
# Git diff.
|
# Git diff.
|
||||||
function gd() {
|
function gd() {
|
||||||
git diff "''${@}"
|
git diff --patience "''${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Git diff added.
|
# Git diff added.
|
||||||
function gda() {
|
function gda() {
|
||||||
git diff --cached "''${@}"
|
git diff --cached --patience "''${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Git commit.
|
# Git commit.
|
||||||
|
|
Loading…
Reference in a new issue