Commit
Basic Commit Flow
Generate a commit message from the staged diff.
Use the root gmc command after staging the files you want to commit.
Usage
git add cmd/root.go internal/workflow
gmcWhat happens
gmcreads the staged diff.- It builds a prompt from the diff, role, and optional context.
- It asks the configured LLM for a Conventional Commit message.
- It shows the message for confirmation.
- It creates the commit.
Notes
The staged diff is the contract. If a file is not staged, it is not part of the commit message.