33 lines
No EOL
660 B
Bash
Executable file
33 lines
No EOL
660 B
Bash
Executable file
#!/bin/bash
|
|
{
|
|
|
|
echo "$(git rev-parse --short=8 HEAD) $(basename $PWD) $(git config --get remote.origin.url)"
|
|
# echo "-------- ------"
|
|
|
|
shopt -s dotglob
|
|
update() {
|
|
for d in "$@"; do
|
|
test -d "$d" -a \! -L "$d" || continue
|
|
cd "$d"
|
|
if [ -d ".git" ] || [ -f ".git" ]; then
|
|
echo "$(git rev-parse --short=8 HEAD) $(basename $PWD) $(git config --get remote.origin.url)"
|
|
update *
|
|
fi
|
|
cd ..
|
|
done
|
|
}
|
|
|
|
cd ./
|
|
update *
|
|
|
|
cd ./other
|
|
update *
|
|
cd ..
|
|
|
|
cd ./cores/src
|
|
update *
|
|
|
|
} | sed -e "s,\(git@github.com:\|https\?://github.com/\)\|\(.git$\),,g" | column -t
|
|
|
|
# echo "--------"
|
|
# echo "generated by $0" |