feat: print new commit messages after pulling updates

This commit is contained in:
2026-08-01 16:58:18 -04:00
parent a4496ff363
commit 06cca1d49a
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -156,7 +156,10 @@ update_repo() {
return 0
fi
info "Repository out of date. Pulling updates..."
local old_sha
old_sha=$(git rev-parse HEAD)
git fetch origin && git reset --hard origin/master && git clean -fd &>/dev/null
printf "\033[1;34m%s\033[0m\n" "$(git log --oneline "$old_sha"..HEAD)"
else
info "Repository not found. Cloning..."
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
+3
View File
@@ -30,7 +30,10 @@ dotstate_update() {
fi
info "Repository out of date. Pulling updates..."
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 --oneline "$old_sha"..HEAD)"
cd ~
dotstate activate
exec zsh