From d6fb59701ac64149bcdfa80c15d431e827cefdd6 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 29 Feb 2024 17:43:29 +0100 Subject: [PATCH] status: commit info was duplicated/two times --- status.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status.sh b/status.sh index 2b33e74..f301f41 100755 --- a/status.sh +++ b/status.sh @@ -13,7 +13,7 @@ _git_info() { # src https://stackoverflow.com/questions/6245570/how-do-i-get-the-current-branch-name-in-git/6245587#6245587 branch_info="$(git branch --show-current)" # src https://ma.ttias.be/pretty-git-log-in-one-line/ - commit_info="$(git log --pretty=format:'%H [%ci] %h %an: %s' -n 1)" + commit_info="$(git log --pretty=format:'[%ci] %h %an: %s' -n 1)" cd - >/dev/null d_name="$(basename "${d}")" }