s-kostyaev / ellama

Ellama is a tool for interacting with large language models from Emacs.
GNU General Public License v3.0
558 stars 38 forks source link

Fix commit message generation for partial commits #146

Closed s-kostyaev closed 4 months ago

s-kostyaev commented 4 months ago

This commit adds two new functions: ellama--diff-cached and ellama--diff. These functions generate the diff output for staged and unstaged changes respectively. The existing ellama-generate-commit-message function now utilizes these new functions to determine the appropriate diff to use.