Files
club-3090/scripts
noonghunnaandClaude Opus 4.7 7d91ac75e0 feat(power-cap-sweep): --include-commit flag stamps club-3090 git SHA in report header (closes #112)
@laurimyllari noted in disc #62 that with the project moving fast,
including the club-3090 git commit in sweep output helps correlate
cross-rig sweeps to the script revision they were run against. He
stamped `aa99173` manually; the script should do it for us.

New flag:

  --include-commit   Stamp the club-3090 git commit (short SHA) in the
                     report header next to the date. Off by default.

Implementation:
- Captures `git -C "$REPO_ROOT" rev-parse --short HEAD` once at header-build
  time (REPO_ROOT was already known to the script).
- Injects into the report header next to **Date:**, e.g.:

    **Date:** 2026-05-10T17:55:00Z   **club-3090 commit:** `534d29f`

- Suppress (don't stamp "n/a") when run from a non-clone or git is
  unreachable. Closes the curl-pipe-from-docs UX hole — `curl ... | bash`
  users don't have a clone, so the field just disappears rather than
  showing a confusing "n/a".

Off by default per the issue rationale: surprise stamping confuses
contributors running from documentation snippets.

Closes #112.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
2026-05-10 17:57:20 +00:00
..