aicommit2 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -2
- package/dist/cli.mjs +83 -85
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ aicommit2
|
|
|
38
38
|
|
|
39
39
|
## 📖 Introduction
|
|
40
40
|
|
|
41
|
-
AICommit2 automatically generates commit messages using AI. It primarily supports Git and also works with Jujutsu
|
|
41
|
+
AICommit2 automatically generates commit messages using AI. It primarily supports [Git](https://git-scm.com/) and also works with [Jujutsu](https://github.com/jj-vcs/jj)(jj) repositories. The core functionalities and architecture of this project are inspired by [AICommits](https://github.com/Nutlope/aicommits).
|
|
42
42
|
|
|
43
43
|
## ✨ Key Features
|
|
44
44
|
|
|
@@ -254,6 +254,10 @@ aicommit2 --all # or -a
|
|
|
254
254
|
- `--confirm` or `-y`: Skip confirmation when committing after message generation (default: **false**)
|
|
255
255
|
- `--clipboard` or `-c`: Copy the selected message to the clipboard (default: **false**).
|
|
256
256
|
- If you give this option, **_aicommit2_ will not commit**.
|
|
257
|
+
- `--edit` or `-e`: Open the AI-generated commit message in your default editor for modification (default: **false**)
|
|
258
|
+
- Opens the message in the editor specified by `$VISUAL`, `$EDITOR`, or platform default
|
|
259
|
+
- Works with both Git and Jujutsu repositories
|
|
260
|
+
- Allows fine-tuning of AI-generated messages before committing
|
|
257
261
|
- `--generate` or `-g`: Number of messages to generate (default: **1**)
|
|
258
262
|
- **Warning**: This uses more tokens, meaning it costs more.
|
|
259
263
|
- `--exclude` or `-x`: Files to exclude from AI analysis
|
|
@@ -271,10 +275,14 @@ aicommit2 --all # or -a
|
|
|
271
275
|
- This option is specifically for use with the pre-commit framework
|
|
272
276
|
- See [Integration with pre-commit framework](#integration-with-pre-commit-framework) section for setup instructions
|
|
273
277
|
|
|
274
|
-
|
|
278
|
+
Examples:
|
|
275
279
|
|
|
276
280
|
```sh
|
|
281
|
+
# Generate multiple commit messages with clipboard and file exclusions
|
|
277
282
|
aicommit2 --locale "jp" --all --type "conventional" --generate 3 --clipboard --exclude "*.json" --exclude "*.ts"
|
|
283
|
+
|
|
284
|
+
# Generate and edit a Jujutsu-style commit message
|
|
285
|
+
aicommit2 --edit --type jujutsu # or conventional, gitmoji
|
|
278
286
|
```
|
|
279
287
|
|
|
280
288
|
### Git hook
|