all repos — nixfiles @ f4f14b448b115639940c1bf34fda9994ee276a0f

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

git: be quiet when I accidentally `git add` nothing
Alan Pearce alan@alanpearce.eu
Sat, 25 May 2024 18:55:14 +0200
commit

f4f14b448b115639940c1bf34fda9994ee276a0f

parent

f4635bd84b3d120400fc502b63f6f5d8792657b3

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M user/settings/git.nixuser/settings/git.nix
@@ -17,6 +17,9 @@ extraConfig = {       init = {
         defaultBranch = "main";
       };
+      advice = {
+        addEmptyPathspec = false;
+      };
       ghq = {
         root = "${config.home.homeDirectory}/projects";
         user = "alanpearce";