Skip to main content

Crate cmt

Crate cmt 

Source

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
CommitOptions
Options for creating a commit.
CommitResult
Result of a successful commit.
DiffAnalysis
Complete analysis of a diff
DiffStats
Stats about staged changes for display
GenerateResult
Result of commit message generation
Spinner
A spinner for showing progress during API calls.
StagedChanges
Result of getting staged changes - includes both diff text and stats

Enums§

CommitError
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