From 0a4b64dc255779b4cededf451d0b6ee2b2ac738f Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Mon, 3 Mar 2025 23:38:57 -0500 Subject: [PATCH] add format.signoff to git config, fix git-gone Signed-off-by: ahuston-0 --- users/alice/home/git.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/users/alice/home/git.nix b/users/alice/home/git.nix index 89ef549..849bf29 100644 --- a/users/alice/home/git.nix +++ b/users/alice/home/git.nix @@ -11,15 +11,15 @@ userName = "ahuston-0"; aliases = { gone = '' - # !git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | # dump all branches - # awk '$2 == "[gone]" {print $1}' | # get nuked branches - # sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons - # xargs -r git branch -D; # nuke the branches # !git for-each-ref --format '%(refname:short) %(upstream)' | # dump all older branches awk 'NF < 2 {print $1}' | # get nuked branches grep -Pv "(^origin/|^origin$|stash)" | # filter out remotes & stash sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons xargs -r git branch -D # nuke the branches + # !git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | # dump all branches + # awk '$2 == "[gone]" {print $1}' | # get nuked branches + # sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons + # xargs -r git branch -D; # nuke the branches # ''; }; extraConfig = { @@ -27,6 +27,7 @@ pull.rebase = true; color.ui = true; init.defaultBranch = "main"; + format.signoff = true; }; }; }