dot_testing/utils/sh/git-survey

13 lines
171 B
Bash
Executable File

#!/bin/sh
for i in *; do
cd "$i" || continue
exists=$(
git status |
grep -c 'Your branch is ahead of '
)
[ "$exists" -eq 0 ] || printf "> %s\n" "$i"
cd ..
done