status: provide more relevant commit info
This commit is contained in:
parent
c7bf0ca0fb
commit
00071594e6
|
@ -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
|
||||
}
|
||||
|
|
Reference in New Issue