diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-13 10:06:48 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-11-13 10:06:48 -0700 |
commit | 9ff76e508325d49796e0130a1535f3a7985bfca6 (patch) | |
tree | 97b0dd8087748a53dc3d6c4f0fff24e12207df4e /bin | |
parent | f45323a276a39a3f52a9eb491d965a1d34a1be22 (diff) | |
download | dotfiles-9ff76e508325d49796e0130a1535f3a7985bfca6.tar.gz |
archive clean-patch-queues
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/clean-patch-queues | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/bin/clean-patch-queues b/bin/clean-patch-queues deleted file mode 100755 index 7d2f9c21..00000000 --- a/bin/clean-patch-queues +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -. "$HOME/.shenv" -. "$HOME/src/dotfiles/lib-src/tputfs.sh" - -if [ ! "$1" = "-y" ]; then - status Are you sure you want to delete ALL git branches matching - status "patch-queue/* in all git repos matching ~/src/* ?" - status Press enter to confirm or hit C-c to abort - read _ -fi - -for repo in $HOME/src/*; do - if [ -d "$repo/.git" ]; then - cd "$repo" - branches="$(git branch | grep ' patch-queue/*' | cut -c3-)" - for branch in $branches; do - git branch -D "$branch" - echo " in repo $(basename $repo)" - done - fi -done |