status: provide more relevant commit info

This commit is contained in:
pedro 2024-02-29 12:57:15 +01:00
parent c7bf0ca0fb
commit 00071594e6
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ main() {
for d in ${dirs}; do
cd ${d}
# src https://ma.ttias.be/pretty-git-log-in-one-line/
commit_info="$(git log --pretty=format:'[%ci] %an: %s (%h)' -n 1)"
commit_info="$(git log --pretty=format:'[%ci] %h %an: %s' -n 1)"
cd - >/dev/null
d_name="$(basename "${d}")"
echo " - ${d_name}, commit: ${commit_info}"
printf " - %-30s commit: %s\n" "${d_name}" "${commit_info}"
done
done
}