disable second git cleanup

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-28 23:38:06 -04:00 committed by Alice Huston
parent 17b53ed509
commit 335d0a3171

View File

@ -15,11 +15,11 @@
awk '$2 == "[gone]" {print $1}' | # get nuked branches awk '$2 == "[gone]" {print $1}' | # get nuked branches
sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons
xargs -r git branch -D; # nuke the branches xargs -r git branch -D; # nuke the branches
git for-each-ref --format '%(refname:short) %(upstream)' | # dump all older branches # git for-each-ref --format '%(refname:short) %(upstream)' | # dump all older branches
awk 'NF < 2 {print $1}' | # get nuked branches # awk 'NF < 2 {print $1}' | # get nuked branches
grep -Pv "(^origin/|^origin$|stash)" | # filter out remotes & stash # grep -Pv "(^origin/|^origin$|stash)" | # filter out remotes & stash
sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons # sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons
xargs -r git branch -D # nuke the branches # xargs -r git branch -D # nuke the branches
''; '';
}; };
extraConfig = { extraConfig = {