mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-10 19:07:15 +01:00
The AUR package sources a clean vX.Y.Z tag, which only moves when the pubspec version changes by hand -- so the packaged version drifts behind HEAD. Bumping the patch per commit keeps the tag tracking HEAD. The Flutter app lives in app/, so the hook is pointed at app/pubspec.yaml explicitly. Patch, not minor: minor/major are the "how much broke" signal, and auto-incrementing them on every commit throws that away. Two guards keep the number honest: re-running the hook over the same staged change is idempotent (the bump is computed from the last COMMITTED version, not the working tree), and a rebase/merge/cherry-pick in progress is skipped so replayed commits don't each inflate it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aoa1nKWRrAbowz7Hfd3tgL |
||
|---|---|---|
| .. | ||
| bump_patch_version.sh | ||
| check_file_length.py | ||
| check_requirements_sync.py | ||
| ci_mirror.sh | ||
| setup_mcp.sh | ||