Skip to content

Commit d3618f6

Browse files
committed
Add git-each
1 parent 0efdfd7 commit d3618f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

git-each

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash -e
2+
3+
DIRS="."
4+
if [[ "$1" == --dir ]]; then
5+
shift 1
6+
DIRS="$1"
7+
shift 1
8+
fi
9+
10+
exec find $DIRS \( -path '*/.git/config' -o \
11+
-regex '.*/.git/.*/config' \) -type f -print0 \
12+
| parallel -0 --bar --delay 1 -k "git --git-dir={//} $@"

0 commit comments

Comments
 (0)