all repos — nixfiles @ 312394e67180ee6cd9b32b59060b73d8bf61a3e5

System and user configuration, managed by nix and home-manager

git: add more settings from the internet

Alan Pearce
commit

312394e67180ee6cd9b32b59060b73d8bf61a3e5

parent

5c321104109727a3abe5c921071dd764c64988dd

1 file changed, 13 insertions(+), 0 deletions(-)

jump to
M user/settings/git.nixuser/settings/git.nix
@@ -22,6 +22,9 @@ extraConfig = {
init = { defaultBranch = "main"; }; + apply = { + whitespace = "fix"; + }; advice = { addEmptyPathspec = false; detachedHead = false;
@@ -33,12 +36,15 @@ user = "alanpearce";
}; core = { commitGraph = true; + autocrlf = "input"; + safecrlf = true; }; commit = { verbose = true; }; pull = { rebase = true; + ff = "only"; }; fetch = { prune = true;
@@ -64,9 +70,13 @@ };
diff = { algorithm = "histogram"; colorMoved = "plain"; + colorMovedWS = "allow-indentation-change"; mnemonicPrefix = true; renames = true; }; + format = { + pretty = "fuller"; + }; grep = { patternType = "perl"; };
@@ -75,6 +85,9 @@ autoSetupMerge = true;
}; branch = { sort = "committerdate"; + }; + log = { + date = "iso-local"; }; tag = { sort = "version:refname";