MCPcopy Index your code
hub / github.com/crate-ci/committed

github.com/crate-ci/committed @v1.1.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.11 ↗ · + Follow
119 symbols 225 edges 12 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

committed

Nitpicking commit history since beabf39

codecov Documentation License Crates Status

Enforce commit standards, whether for: - Readability, especially in logs - Consistent styling - Compatibility with programmatic processing

Install

Download a pre-built binary (installable via gh-install).

Or use rust to install:

cargo install committed

pre-commit

To use committed with pre-commit, point its config at this repository:

repos:
  - repo: https://github.com/crate-ci/committed
    rev: v1.1.11
    hooks:
      - id: committed

The committed id installs a prebuilt executable from GitHub releases. If one does not exist for the target platform, or if one built from sources is preferred, use committed-src as the hook id instead.

Be sure to change rev to use the desired committed git tag or revision.

By default, the pre-commit install only installs hooks of the pre-commit type, so you may need to list the commit-msg hook during installation:

pre-commit install -t pre-commit -t commit-msg

or update your .pre-commit-config.yaml like so:

default_install_hook_types: [pre-commit, commit-msg]

The hook, by default, will verify your commit message.

Basic Usage

Verify your latest commit

committed HEAD

Verify your branch

committed master..HEAD --no-merge-commit

Have your CI verify your PR (assuming it does a no-ff merge into your master)

committed HEAD~..HEAD^2 --no-merge-commit

See imperative for a GitHub Actions example or look at committed's own GitHub Actions pipeline, .travis.yml, or appveyor.yml.

Reference

Contribute

License

Licensed under either of

at your option.

Extension points exported contracts — how you extend this code

Style (Interface)
(no doc) [2 implementers]
crates/committed/src/style.rs

Core symbols most depended-on inside this repo

iter
called by 11
crates/committed/src/git.rs
trim_commit_file
called by 8
crates/committed/src/main.rs
next
called by 6
crates/committed/src/git.rs
line_length
called by 4
crates/committed/src/config.rs
style
called by 4
crates/committed/src/config.rs
check_message
called by 4
crates/committed/src/checks.rs
subject_length
called by 3
crates/committed/src/config.rs
merge_commit
called by 3
crates/committed/src/main.rs

Shape

Function 54
Method 38
Class 21
Enum 5
Interface 1

Languages

Rust100%

Modules by API surface

crates/committed/src/report.rs23 symbols
crates/committed/src/main.rs21 symbols
crates/committed/src/checks.rs20 symbols
crates/committed/src/config.rs19 symbols
crates/committed/tests/cmd.rs11 symbols
crates/committed/src/no_style.rs9 symbols
crates/committed/src/color.rs6 symbols
crates/committed/src/git.rs5 symbols
crates/committed/src/conventional.rs4 symbols
crates/committed/src/style.rs1 symbols

For agents

$ claude mcp add committed \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact