summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-05-25 18:55:14 +0200
committerAlan Pearce2024-05-26 13:55:53 +0200
commitf4f14b448b115639940c1bf34fda9994ee276a0f (patch)
tree5d741d0d38df0d191416a13591a2a4e6a8df2e44 /user
parentf4635bd84b3d120400fc502b63f6f5d8792657b3 (diff)
downloadnixfiles-f4f14b448b115639940c1bf34fda9994ee276a0f.tar.lz
nixfiles-f4f14b448b115639940c1bf34fda9994ee276a0f.tar.zst
nixfiles-f4f14b448b115639940c1bf34fda9994ee276a0f.zip
git: be quiet when I accidentally `git add` nothing
Diffstat (limited to 'user')
-rw-r--r--user/settings/git.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/git.nix b/user/settings/git.nix
index 18368864..4726120c 100644
--- a/user/settings/git.nix
+++ b/user/settings/git.nix
@@ -17,6 +17,9 @@
       init = {
         defaultBranch = "main";
       };
+      advice = {
+        addEmptyPathspec = false;
+      };
       ghq = {
         root = "${config.home.homeDirectory}/projects";
         user = "alanpearce";