//! Build script: expose git commit metadata as a compile-time environment
//! variable so `build_info::GIT_HASH` is always populated.
//!
//! Why: Bug reports and log lines need a deterministic identifier for the
//! running binary — `CARGO_PKG_VERSION` alone collapses every commit on a
//! dev branch into the same version string. Pairing it with the short git
//! SHA gives a deterministic identifier for correlation.
//! What: Queries `git rev-parse --short HEAD` at build time and exposes the
//! result as `GIT_COMMIT_HASH`, or falls back to `"unknown"` if git is
//! unavailable.
//! Test: After `cargo build`, the compiled binary's startup banner should
//! include either a 7-char hash or the literal `"unknown"`.
use Command;