2 releases
new 0.1.1 | Mar 10, 2025 |
---|---|
0.1.0 | Mar 10, 2025 |
#477 in Command line utilities
35 downloads per month
16KB
320 lines
fastcommit
fastcommit
is a command-line tool designed to help developers quickly generate standardized commit messages. It supports multiple languages and detail levels, and can automatically generate commit messages based on file differences.
-- 中文文档:README_CN.md
Installation
You can install fastcommit
using the following method:
# Install using cargo
cargo install fastcommit
Usage
Basic Usage
git add .
fastcommit
Options
-d, --diff-file <DIFF_FILE>
: Specify the path to the file containing the differences.--conventional <CONVENTIONAL>
: Enable or disable conventional commit style analysis. Acceptable values aretrue
orfalse
.-l, --language <LANGUAGE>
: Specify the language for the commit message. Acceptable values areen
(English) orzh
(Chinese).-v, --verbosity <VERBOSITY>
: Set the detail level of the commit message. Acceptable values areverbose
(detailed),normal
, orquiet
(concise). The default isquiet
.-h, --help
: Print help information.-V, --version
: Print version information.
Examples
-
Generate a commit message using default settings:
fastcommit -d changes.diff
-
Enable conventional commit style and specify the Chinese language:
fastcommit -d changes.diff --conventional true -l zh
-
Set the detail level to
verbose
:fastcommit -d changes.diff -v verbose
Contributing
Contributions of code or suggestions are welcome! Please read the Contributing Guide first.
License
This project is licensed under the MIT License.
Dependencies
~10–20MB
~256K SLoC