plugins/file/commands/commit architecture

Implements the file commit command that validates the selected changed files and index state, stages/unstages to match the selection, and creates a git commit with the provided message.

Architectural role

Git commit command invoked through handleFile. It closes the inspect-via-diff/history → persist loop, using shared workspace/repository containment and isolating transactional Git logic in its handler while the adapter formats CLI/web results.

Source map

Integration details