status: commit info was duplicated/two times
This commit is contained in:
parent
7d1c4c3f9d
commit
d6fb59701a
|
@ -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}")"
|
||||
}
|
||||
|
|
Reference in New Issue