summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-07-08 14:33:05 +0200
committerAlan Pearce2024-07-08 14:33:05 +0200
commit6a8e456ae13aa78d01a5ccc9c5d586538bbdfc7e (patch)
treef07c80d91122c59cd48dea561a7332f556ce7550
parent6516c2559c4fe10dc3c32d824411a71c9f8cae07 (diff)
downloadnixfiles-6a8e456ae13aa78d01a5ccc9c5d586538bbdfc7e.tar.lz
nixfiles-6a8e456ae13aa78d01a5ccc9c5d586538bbdfc7e.tar.zst
nixfiles-6a8e456ae13aa78d01a5ccc9c5d586538bbdfc7e.zip
git: add some interesting settings
-rw-r--r--user/settings/git.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/user/settings/git.nix b/user/settings/git.nix
index 769b3728..08903e23 100644
--- a/user/settings/git.nix
+++ b/user/settings/git.nix
@@ -32,21 +32,27 @@
       pull = {
         rebase = true;
       };
+      fetch = {
+        prune = true;
+        prunetags = true;
+      };
       push = {
         default = "current";
+        autoSetupRemote = true;
         followTags = true;
       };
       rebase = {
         autosquash = true;
+        updateRefs = true;
       };
       rerere = {
-        enable = true;
+        enabled = true;
       };
       merge = {
         conflictStyle = "diff3";
       };
       diff = {
-        algorithm = "patience";
+        algorithm = "histogram";
         colorMoved = "default";
       };
       remote = {
@@ -58,6 +64,7 @@
       "branch.main" = {
         rebase = false;
       };
+      "url.git@github.com:".insteadOf = "https://github.com/";
     };
     signing = {
       key = "0xCD4BEB92A8D46583";