ref:main

anvil commit view <sha> — inspect a single commit #17

open Opened by cole.christensen@gmail.com

Links

No links yet.

Problem

`anvil commit` only has `list`. No way to view a single commit’s metadata + diff via the CLI.

Proposal

`anvil commit view ` — show author, date, message, file stat, optionally full diff with `–diff`.

Implementation

Could be served via local `git show ` if the repo is cloned, OR via a new server endpoint `GET /api/v1/:org/:repo/commits/:sha`.

Acceptance criteria

  • `anvil commit view ` shows commit metadata
  • `–diff` includes the patch
  • `–json` for scripting
  • Works in cloned repo OR via server (decide implementation)

Origin

CLI gap audit. Lower priority.