Metadata-Version: 2.1
Name: whatdido
Version: 0.2.0
Summary: Use AI to write your git commit messages.
License: GPL-2.0
Author: Evan Nagle
Author-email: evan.nagle@gmail.com
Requires-Python: >=3.11,<=3.13
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: gitpython (>=3.1.43,<4.0.0)
Requires-Dist: openai (>=1.14.3,<2.0.0)
Requires-Dist: typer (>=0.12.0,<0.13.0)
Description-Content-Type: text/markdown

# Whatdido

No more "git commit -m "adsfkjaef"" in a fit of rage. Simply type `dido` to add your changes and write a simple and sane commit message.

**This package is in an exploratory beta state. Please use carefully and at your own risk.**

## Installation

```bash
pip install whatdido

cd <any repo>

echo "Here's a new file for Tony" > "tony.txt"

git add tony.txt

whatdido summary

> Added new file 'tony.txt' containing the text \"Here's a new file for Tony\".

```

Here's a bash helper function for quicker usage:

```bash
dido() {
    git add -A
    git commit -m "$(whatdido summary)"
}
```

## Usage

```
whatdido --help

 Usage: whatdido [OPTIONS] COMMAND [ARGS]...

╭─ Options ────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.  │
│ --show-completion             Show completion for the current shell, to  │
│                               copy it or customize the installation.     │
│ --help                        Show this message and exit.                │
╰──────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────╮
│ commit     Edit the summary and commit to the repo in one shot           |
│ config                                                                   │
│ diff       Get the terse diff of the staged changes.                     │
│ summary    Summarize the changes in the repository.                      │
╰──────────────────────────────────────────────────────────────────────────╯
```

