status: commit info was duplicated/two times

This commit is contained in:
pedro 2024-02-29 17:43:29 +01:00
parent 7d1c4c3f9d
commit d6fb59701a
1 changed files with 1 additions and 1 deletions

View File

@ -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}")"
}