diff --git a/bootstrap.sh b/bootstrap.sh index dd99310..1175234 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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 diff --git a/default/.config/zsh/functions.zsh b/default/.config/zsh/functions.zsh index 52ebc4b..acd5fbb 100644 --- a/default/.config/zsh/functions.zsh +++ b/default/.config/zsh/functions.zsh @@ -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