-
Notifications
You must be signed in to change notification settings - Fork 1
/
gsall
executable file
·35 lines (30 loc) · 1005 Bytes
/
gsall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
source ./functions.sh
showStatus() {
{
# git -c color.ui=always status --short -b
RESULTS=$({
git -c color.ui=always status --show-stash |
grep -v "Your branch is up to date with" |
grep -v "no changes added to commit" |
grep -v "Changes not staged for commit" |
grep -v "working tree clean" |
grep -v "what will be committed" |
grep -v "to discard changes in working directory" |
grep -v "git restore --staged" |
grep -v "^On branch " |
grep -ve "^\s*$" |
cat
})
[[ -z $RESULTS ]] || {
echo "$RESULTS"
echo "--------------------------------------------------"
}
} | labeledOutput $LABEL
}
{
eachRepo parallel buffered "checking \`git status\` in each repo" \
showStatus
} | optionalPager
echo >&2
echo "run ./need-commits to see a list of repos needing commits" >&2