Loading...
Searching...
No Matches
Go to the documentation of this file.
8Phase 4B ``oct git`` package: user-facing Click commands, quality-gate
9orchestration, audit logging, and profile policy. Imported lazily by
10:mod:`oct.cli` via :func:`git_group` so that CLI startup does not pay
11the cost of loading the linter, formatter, or subprocess machinery for
16- Expose the ``git`` Click command group for :mod:`oct.cli` registration.
17- Re-export the stable public API consumed by other oct modules.
21- All Click command functions go through the :func:`audited` decorator
22 defined in :mod:`oct.git.audit`.
23- Every read-only git state query delegates to :mod:`oct.core.git`
24 (Phase 4A foundation). This module never calls ``subprocess.run``
26- No write operations land in Phase 4B — both ``oct git status`` and
27 ``oct git check`` are strictly read-only. Writes come in Phase 4C/4D.
30__all__ = [
"git_group"]
34 """Lazy re-export of :data:`git_group` from :mod:`oct.git.oct_git`.
36 ``oct.git.oct_git`` imports Click and the linter/formatter
37 orchestrators, which are heavy. Using ``__getattr__`` keeps those
38 imports deferred until :mod:`oct.cli` actually touches the group,
39 mirroring the pattern the existing ``diag`` package uses.
41 if name ==
"git_group":
44 raise AttributeError(f
"module 'oct.git' has no attribute {name!r}")