phantom init installs a #!/bin/sh pre-commit hook. Works under Git for Windows (which ships bash), but may be skipped by GUI clients (GitHub Desktop, IDE integrations) or native PowerShell git configurations.
Location
phantom-cli/src/commands/init.rs:236
Options
- Document only — note the Git for Windows requirement in the README (lowest effort, probably sufficient).
- Detect and dual-install — additionally emit a
.cmd wrapper for native Windows git.
- Rewrite as a single cross-platform Rust binary —
phantom check --staged shelled from a thin hook script; avoids shell entirely.
Recommendation: start with option 1. Revisit if a real user reports the issue.
Severity
Functional gap — low impact; most Windows developers use Git for Windows.
Tracker: #1
phantom initinstalls a#!/bin/shpre-commit hook. Works under Git for Windows (which ships bash), but may be skipped by GUI clients (GitHub Desktop, IDE integrations) or native PowerShell git configurations.Location
phantom-cli/src/commands/init.rs:236Options
.cmdwrapper for native Windows git.phantom check --stagedshelled from a thin hook script; avoids shell entirely.Recommendation: start with option 1. Revisit if a real user reports the issue.
Severity
Functional gap — low impact; most Windows developers use Git for Windows.
Tracker: #1