Re-exports§
pub use pricing::PricingCache;
Modules§
- ai_mod
- config_
mod - defaults
- pricing
- Pricing module for estimating API costs
- template_
mod
Structs§
- Args
- A CLI tool that generates commit messages using AI
- Commit
Options - Options for creating a commit.
- Commit
Result - Result of a successful commit.
- Diff
Analysis - Complete analysis of a diff
- Diff
Stats - Stats about staged changes for display
- Generate
Result - Result of commit message generation
- Spinner
- A spinner for showing progress during API calls.
- Staged
Changes - Result of getting staged changes - includes both diff text and stats
Enums§
- Commit
Error - Errors that can occur when creating a commit.
Functions§
- analyze_
diff - Analyze a git diff and return structured information
- append_
to_ cmtignore - Append file patterns to .cmtignore
- create_
commit - Create a commit with the given message, respecting git hooks.
- generate_
commit_ message - get_
current_ branch - Get the current branch name
- get_
readme_ excerpt - Get the first N lines of the README for project context
- get_
recent_ commits - get_
staged_ changes - load_
cmtignore - Load patterns from .cmtignore file in the repository root