From 00071594e6c8c18faf50a7ced6b48cb8877312d1 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 29 Feb 2024 12:57:15 +0100 Subject: [PATCH] status: provide more relevant commit info --- status.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/status.sh b/status.sh index 6ff7b38..bea9c3e 100755 --- a/status.sh +++ b/status.sh @@ -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 }