git-explain 2.4.0__tar.gz → 2.5.1__tar.gz

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.
Files changed (28) hide show
  1. {git_explain-2.4.0 → git_explain-2.5.1}/PKG-INFO +3 -6
  2. {git_explain-2.4.0 → git_explain-2.5.1}/README.md +1 -4
  3. git_explain-2.5.1/git_explain/__init__.py +1 -0
  4. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/cli.py +385 -275
  5. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/gemini.py +9 -42
  6. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/heuristics.py +10 -43
  7. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/path_topics.py +40 -0
  8. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain.egg-info/PKG-INFO +3 -6
  9. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain.egg-info/SOURCES.txt +2 -0
  10. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain.egg-info/requires.txt +1 -1
  11. {git_explain-2.4.0 → git_explain-2.5.1}/pyproject.toml +1 -1
  12. git_explain-2.5.1/tests/test_gemini_suggest_commands.py +127 -0
  13. git_explain-2.5.1/tests/test_git.py +209 -0
  14. git_explain-2.4.0/git_explain/__init__.py +0 -1
  15. {git_explain-2.4.0 → git_explain-2.5.1}/LICENSE +0 -0
  16. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/__main__.py +0 -0
  17. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/commit_infer.py +0 -0
  18. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/git.py +0 -0
  19. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain/run.py +0 -0
  20. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain.egg-info/dependency_links.txt +0 -0
  21. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain.egg-info/entry_points.txt +0 -0
  22. {git_explain-2.4.0 → git_explain-2.5.1}/git_explain.egg-info/top_level.txt +0 -0
  23. {git_explain-2.4.0 → git_explain-2.5.1}/setup.cfg +0 -0
  24. {git_explain-2.4.0 → git_explain-2.5.1}/tests/test_cli_utils.py +0 -0
  25. {git_explain-2.4.0 → git_explain-2.5.1}/tests/test_commit_infer.py +0 -0
  26. {git_explain-2.4.0 → git_explain-2.5.1}/tests/test_gemini.py +0 -0
  27. {git_explain-2.4.0 → git_explain-2.5.1}/tests/test_heuristics.py +0 -0
  28. {git_explain-2.4.0 → git_explain-2.5.1}/tests/test_run_apply.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: git-explain
3
- Version: 2.4.0
3
+ Version: 2.5.1
4
4
  Summary: CLI that suggests git add/commit from diffs using Gemini
5
5
  Author: nazarli-shabnam
6
6
  Author-email: shabnamnezerli@gmail.com
@@ -28,7 +28,7 @@ Requires-Dist: python-dotenv>=1.0.0
28
28
  Requires-Dist: prompt_toolkit>=3.0.0
29
29
  Provides-Extra: dev
30
30
  Requires-Dist: pytest>=8.0.0; extra == "dev"
31
- Requires-Dist: ruff>=0.8.0; extra == "dev"
31
+ Requires-Dist: ruff==0.12.3; extra == "dev"
32
32
  Dynamic: license-file
33
33
 
34
34
  # git-explain
@@ -37,7 +37,6 @@ Suggests **conventional** `git add` / `git commit` messages from your changes. U
37
37
 
38
38
  [![PyPI](https://img.shields.io/pypi/v/git-explain.svg?label=pypi)](https://pypi.org/project/git-explain/)
39
39
  [![GitHub tag](https://img.shields.io/github/v/tag/nazarli-shabnam/git-explain?label=repo)](https://github.com/nazarli-shabnam/git-explain/tags)
40
- <!-- GitAds-Verify: 29ITVVWNRUVU524NJ5ZRR6DSZKIHP3EX -->
41
40
 
42
41
  ---
43
42
 
@@ -83,6 +82,7 @@ If `AI_API_KEY` is empty, **`GEMINI_API_KEY`** is still read (same key, older na
83
82
  | `--auto` | Apply suggested commands without a confirmation prompt. |
84
83
  | `--staged-only` | Work with staged changes only (no `git add` from the tool). |
85
84
  | `--cwd` | Use another directory as the git repo root. |
85
+ | `--model` | Override the AI model for this run (defaults to `AI_MODEL` from the repo `.env`). |
86
86
  | `--with-diff` | Send the full diff to the AI (more context). |
87
87
  | `--suggest` | Print one suggested `git commit -m "…"` line (staged, AI only). |
88
88
 
@@ -120,6 +120,3 @@ python -m git_explain
120
120
 
121
121
  Contributors: `pip install -e ".[dev]"` then `pytest -q`, `ruff check .`, `ruff format --check .`.
122
122
 
123
- ## GitAds Sponsored
124
- [![Sponsored by GitAds](https://gitads.dev/v1/ad-serve?source=nazarli-shabnam/git-explain@github)](https://gitads.dev/v1/ad-track?source=nazarli-shabnam/git-explain@github)
125
-
@@ -4,7 +4,6 @@ Suggests **conventional** `git add` / `git commit` messages from your changes. U
4
4
 
5
5
  [![PyPI](https://img.shields.io/pypi/v/git-explain.svg?label=pypi)](https://pypi.org/project/git-explain/)
6
6
  [![GitHub tag](https://img.shields.io/github/v/tag/nazarli-shabnam/git-explain?label=repo)](https://github.com/nazarli-shabnam/git-explain/tags)
7
- <!-- GitAds-Verify: 29ITVVWNRUVU524NJ5ZRR6DSZKIHP3EX -->
8
7
 
9
8
  ---
10
9
 
@@ -50,6 +49,7 @@ If `AI_API_KEY` is empty, **`GEMINI_API_KEY`** is still read (same key, older na
50
49
  | `--auto` | Apply suggested commands without a confirmation prompt. |
51
50
  | `--staged-only` | Work with staged changes only (no `git add` from the tool). |
52
51
  | `--cwd` | Use another directory as the git repo root. |
52
+ | `--model` | Override the AI model for this run (defaults to `AI_MODEL` from the repo `.env`). |
53
53
  | `--with-diff` | Send the full diff to the AI (more context). |
54
54
  | `--suggest` | Print one suggested `git commit -m "…"` line (staged, AI only). |
55
55
 
@@ -87,6 +87,3 @@ python -m git_explain
87
87
 
88
88
  Contributors: `pip install -e ".[dev]"` then `pytest -q`, `ruff check .`, `ruff format --check .`.
89
89
 
90
- ## GitAds Sponsored
91
- [![Sponsored by GitAds](https://gitads.dev/v1/ad-serve?source=nazarli-shabnam/git-explain@github)](https://gitads.dev/v1/ad-track?source=nazarli-shabnam/git-explain@github)
92
-
@@ -0,0 +1 @@
1
+ __version__ = "2.5.1"