Nutlope / aicommits

A CLI that writes your git commit messages for you with AI

Home Page:https://www.npmjs.com/package/aicommits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support generating a commit message for a given changeset

RobertCraigie opened this issue · comments

Feature request

Instead of requiring that files have to be locally staged to generate a commit message, it would be possible to generate a commit message for a given diff, e.g. origin/main..my-feature-branch.

$ aicommits generate origin/main..my-feature-branch

Instead of committing with the generated commit message it would just output message for usage elswhere.

This obviously means that the diffs would probably be too large for OpenAI - so the per-file diff solution mentioned in the roadmap would likely need to be implemented as well for this to be useful.

Why?

We'd love to be able to use this tool to generate a commit message for the entire diff in a PR!

Alternatives

No response

Additional context

No response

Good idea!

Maybe aic diff branchA branchB?

Yeah that sounds good to me!