| Crates.io | git-busy |
| lib.rs | git-busy |
| version | 1.0.0 |
| created_at | 2022-12-31 06:16:37.003268+00 |
| updated_at | 2022-12-31 06:16:37.003268+00 |
| description | A wrapper around "git commit" that generates the commit messages for you |
| homepage | https://github.com/coderdan/goodcommit |
| repository | https://github.com/coderdan/goodcommit |
| max_upload_size | |
| id | 748259 |
| size | 889,492 |
██████╗ ██╗ ████████╗ ██████╗ ██╗ ██╗ ███████╗ ██╗ ██╗
██╔════╝ ██║ ╚══██╔══╝ ██╔══██╗ ██║ ██║ ██╔════╝ ╚██╗ ██╔╝
██║ ███╗ ██║ ██║ ██████╔╝ ██║ ██║ ███████╗ ╚████╔╝
██║ ██║ ██║ ██║ ██╔══██╗ ██║ ██║ ╚════██║ ╚██╔╝
╚██████╔╝ ██║ ██║ ██████╔╝ ╚██████╔╝ ███████║ ██║
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝ ╚═╝

Let the computer write the commit message for you
This tool helps you write commit messages

git-busy sends the output of git diff --staged --ignore-all-space to the GPT3 API and asks the model to write a commit message based off of the diff.
It then allows you to choose from three suggestions and you will be able to edit before it calls git commit.
If you supply a -m or --message flag GPT3 will not be consulted and instead your supplied message will be used for the commit.
Use git-busy instead of git commit. All flags you write are passed on.
You will need an API key for GPT3 as an environment variable called GPT_API_KEY.
Go to https://beta.openai.com/account/api-keys to create an account and the required key.
💡 Large diffs won't work well so keep them small
cargo install git-busy
Usage: git busy [<options>] [--] <pathspec>...
💡 Any arguments and flags are passed onto git commit.
Licensed under the GNU GPL-3.0-or-later.