oct.git package

oct.git package#

Purpose#

Phase 4B oct git package: user-facing Click commands, quality-gate orchestration, audit logging, and profile policy. Imported lazily by oct.cli via git_group() so that CLI startup does not pay the cost of loading the linter, formatter, or subprocess machinery for non-git commands.

Responsibilities#

  • Expose the git Click command group for oct.cli registration.

  • Re-export the stable public API consumed by other oct modules.

Contracts#

  • All Click command functions go through the audited() decorator defined in oct.git.audit.

  • Every read-only git state query delegates to oct.core.git (Phase 4A foundation). This module never calls subprocess.run directly.

  • No write operations land in Phase 4B — both oct git status and oct git check are strictly read-only. Writes come in Phase 4C/4D.

Submodules#