diff options
author | Alan Pearce | 2025-02-25 20:47:17 +0100 |
---|---|---|
committer | Alan Pearce | 2025-02-25 20:47:17 +0100 |
commit | 312394e67180ee6cd9b32b59060b73d8bf61a3e5 (patch) | |
tree | f8b64869edfd2077c1317f5095c927adb9c13df1 | |
parent | 5c321104109727a3abe5c921071dd764c64988dd (diff) | |
download | nixfiles-312394e67180ee6cd9b32b59060b73d8bf61a3e5.tar.lz nixfiles-312394e67180ee6cd9b32b59060b73d8bf61a3e5.tar.zst nixfiles-312394e67180ee6cd9b32b59060b73d8bf61a3e5.zip |
git: add more settings from the internet
-rw-r--r-- | user/settings/git.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/user/settings/git.nix b/user/settings/git.nix index 320f9aeb..3a996f01 100644 --- a/user/settings/git.nix +++ b/user/settings/git.nix @@ -22,6 +22,9 @@ in init = { defaultBranch = "main"; }; + apply = { + whitespace = "fix"; + }; advice = { addEmptyPathspec = false; detachedHead = false; @@ -33,12 +36,15 @@ in }; core = { commitGraph = true; + autocrlf = "input"; + safecrlf = true; }; commit = { verbose = true; }; pull = { rebase = true; + ff = "only"; }; fetch = { prune = true; @@ -64,9 +70,13 @@ in diff = { algorithm = "histogram"; colorMoved = "plain"; + colorMovedWS = "allow-indentation-change"; mnemonicPrefix = true; renames = true; }; + format = { + pretty = "fuller"; + }; grep = { patternType = "perl"; }; @@ -76,6 +86,9 @@ in branch = { sort = "committerdate"; }; + log = { + date = "iso-local"; + }; tag = { sort = "version:refname"; }; |