Nutlope / aicommits

A CLI that writes your git commit messages for you with AI
https://www.npmjs.com/package/aicommits
MIT License
7.53k stars 360 forks source link

Message sanitization should not always remove newlines #255

Open giovannipapini opened 8 months ago

giovannipapini commented 8 months ago

Feature request

Removing message sanitization or at least set it optional.

Why?

It is a common standard putting a short commit message header followed by two newlines and a more descriptive message body. When I set the commit message length longer than 100 it is quite common that GPT generates a commit message with a header and a body but with this sanitization step newlines are removed and it messes up the result.

Alternatives

No response

Additional context

No response