mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
20 lines
444 B
Bash
Executable file
20 lines
444 B
Bash
Executable file
#!/bin/bash
|
|
|
|
function status {
|
|
topdir=$PWD
|
|
echo
|
|
for subdir in .git $(find feeds/ -type d -name .git); do
|
|
|
|
echo "======= $(dirname $subdir) ========"
|
|
cd $subdir/..
|
|
if git status |grep -Eq '^\s([^\s\(]+)'; then
|
|
git status |grep -Ev '(nothing added|use "git |^$)'
|
|
else
|
|
git status |grep -E "(On branch|HEAD detached)"
|
|
fi
|
|
cd $topdir
|
|
done
|
|
echo
|
|
}
|
|
|
|
register_command "status" "Display the state of your working tree"
|