fix: let git handle commit message formatting directly
This commit is contained in:
@@ -33,7 +33,7 @@ dotstate_update() {
|
||||
local old_sha
|
||||
old_sha=$(git rev-parse HEAD)
|
||||
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
|
||||
printf "\033[1;34m%s\033[0m\n" "$(git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD)"
|
||||
git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD
|
||||
cd ~
|
||||
dotstate activate &>/dev/null
|
||||
exec zsh
|
||||
|
||||
Reference in New Issue
Block a user