summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-13 10:06:48 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-13 10:06:48 -0700
commit9ff76e508325d49796e0130a1535f3a7985bfca6 (patch)
tree97b0dd8087748a53dc3d6c4f0fff24e12207df4e /bin
parentf45323a276a39a3f52a9eb491d965a1d34a1be22 (diff)
downloaddotfiles-9ff76e508325d49796e0130a1535f3a7985bfca6.tar.gz
archive clean-patch-queues
Diffstat (limited to 'bin')
-rwxr-xr-xbin/clean-patch-queues22
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