Skip to content

Added git why --version - #7

Merged
maledadams merged 2 commits into
maledadams:mainfrom
adjenk:issue_1
Sep 8, 2026
Merged

maledadams merged 2 commits into
maledadams:mainfrom
adjenk:issue_1

Conversation

@adjenk

@adjenk adjenk commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Adds a top-level --version / -V flag that prints git why 0.1.0, reading the number from a single version constant in git_why.py (kept in sync with pyproject.toml) instead of hardcoding it in a second place.

  • sh test/smoke.sh prints SMOKE OK
  • still one file, no new dependencies
  • committed with git why commit

Why: no way to print the version today; single source of truth avoids drift from pyproject.toml
Why-Spec: #1
@maledadams
maledadams merged commit 7d44d51 into maledadams:main Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants