aicommits icon indicating copy to clipboard operation
aicommits copied to clipboard

Option to provide the autogenerated commit message as string output without actually committing

Open cdf1982 opened this issue 1 year ago • 0 comments

Feature request

I'd love if AI Commits included an option (i.e. -o, for output only) to auto-generate the commit message, but provide such message as output for the command in string form, without actually commit the changes.

Why?

I can see three scenarios where I want to use AI Commits:

  1. With the current great feature-set, to have it auto-generate messages and review/approve them before actually committing; certainly useful in most cases, as it's both convenient and "secure";

  2. Per #61, for simple changes I'd love -y as a parameter to auto-approve and commit, when I know I've made minor changes that the AI will certainly describe correctly (i.e. fixed typo, conformed to protocol, etc.).

  3. Case 3 is what I'm opening this feature request: I'd love to use AI Commits in tandem with a tool like Gitwatch: Gitwatch can monitor a folder and auto-commit (and optionally push) every change, but currently the commit message is a standard template; if a tool like Gitwatch could invoke AI Commits for generating a more descriptive message, it would be a combination with superpowers, especially for cases like Jekyll blogs (my actual use case).

Alternatives

No response

Additional context

Disclaimer: Gitwatch cannot currently invoke AI Commits and, while I've opened an issue there and the maintainer is very kind and open to the idea, there's no guarantee that someone will take the time to actually implement the ability to invoke external tools from Gitwatch. So, please build this only if you see value for this feature for other needs / use cases as well.

cdf1982 avatar Mar 12 '23 16:03 cdf1982