From dc61c0d7533e1d119a0bf60d1a2516a7b112a9ea Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 23 Feb 2024 11:07:23 +0100 Subject: [PATCH] status.sh: update with data and extra commit info --- status.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }