feat: print new commit messages after pulling updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user