feat: add relative date to commit messages
This commit is contained in:
@@ -33,8 +33,8 @@ 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 --oneline "$old_sha"..HEAD)"
|
||||
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)"
|
||||
cd ~
|
||||
dotstate activate
|
||||
dotstate activate &>/dev/null
|
||||
exec zsh
|
||||
}
|
||||
Reference in New Issue
Block a user