summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--user/settings/git.nix13
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";
       };