feat: add relative date to commit messages

This commit is contained in:
2026-08-01 17:01:14 -04:00
parent eaa7cf613e
commit e4a81d7ab0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ update_repo() {
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)"
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)"
else
info "Repository not found. Cloning..."
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null