This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2024-02-20 09:57:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
# DEBUG
|
|
|
|
#set -x
|
|
|
|
|
|
|
|
main() {
|
|
|
|
|
2024-02-20 09:59:56 +00:00
|
|
|
cd "$(dirname "${0}")"
|
2024-02-20 09:57:28 +00:00
|
|
|
instances="$(find . -maxdepth 1 -type d \
|
|
|
|
| grep -E 'pilot|instance' \
|
|
|
|
| cut -d'_' -f3
|
|
|
|
)"
|
|
|
|
for i in ${instances}; do
|
|
|
|
dirs="$(find . -maxdepth 1 -type d \
|
|
|
|
| grep -E 'pilot|instance' \
|
|
|
|
| grep "${i}"
|
|
|
|
)"
|
|
|
|
echo "- ${i}"
|
|
|
|
for d in ${dirs}; do
|
|
|
|
cd ${d}
|
2024-02-23 10:07:23 +00:00
|
|
|
# src https://ma.ttias.be/pretty-git-log-in-one-line/
|
2024-02-29 11:57:15 +00:00
|
|
|
commit_info="$(git log --pretty=format:'[%ci] %h %an: %s' -n 1)"
|
2024-02-20 09:57:28 +00:00
|
|
|
cd - >/dev/null
|
|
|
|
d_name="$(basename "${d}")"
|
2024-02-29 11:59:27 +00:00
|
|
|
printf " - %-25s | commit: %s\n" "${d_name}" "${commit_info}"
|
2024-02-20 09:57:28 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
main "${@}"
|