git: be quiet when I accidentally `git add` nothing
Alan Pearce alan@alanpearce.eu
Sat, 25 May 2024 18:55:14 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M user/settings/git.nix → user/settings/git.nix
@@ -17,6 +17,9 @@ extraConfig = { init = { defaultBranch = "main"; }; + advice = { + addEmptyPathspec = false; + }; ghq = { root = "${config.home.homeDirectory}/projects"; user = "alanpearce";