Skip to content

Commit 9d93e51

Browse files
committed
changes
1 parent 4de3f5c commit 9d93e51

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

git-each

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ fi
99

1010
exec find $DIRS \( -path '*/.git/config' -o \
1111
-regex '.*/.git/.*/config' \) -type f -print0 \
12-
| parallel -0 --bar --delay 1 -k "git --git-dir={//} $@"
12+
| parallel -0 --bar -j0 --delay 1 -k "git --git-dir={//} $@"

git-stale-branches

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
if ! git config --get-all remote.origin.fetch | grep -q '/pr/'; then
4+
git config --add remote.origin.fetch '+refs/pull/*:refs/remotes/origin/pr/*'
5+
fi
6+
7+
git fetch --all
8+
9+
for r in $(git branch -r --format='%(refname)'); do
10+
git branch --merged $r;
11+
done | sort -u | grep -v '^\*' | xargs -r echo # git branch -D

0 commit comments

Comments
 (0)