diff --git a/status.sh b/status.sh index 87c271c..6ff7b38 100755 --- a/status.sh +++ b/status.sh @@ -20,10 +20,11 @@ main() { echo "- ${i}" for d in ${dirs}; do cd ${d} - commit="$(git log --pretty=format:'%H' -n 1)" + # src https://ma.ttias.be/pretty-git-log-in-one-line/ + commit_info="$(git log --pretty=format:'[%ci] %an: %s (%h)' -n 1)" cd - >/dev/null d_name="$(basename "${d}")" - echo " - ${d_name}, commit: ${commit}" + echo " - ${d_name}, commit: ${commit_info}" done done }