auto-commit-msg icon indicating copy to clipboard operation
auto-commit-msg copied to clipboard

Setup CLI use for outside IDE

Open MichaelCurrin opened this issue 3 years ago • 1 comments

I've already setup a flow for using the compiled JS files outside of VS Code.

Test and document this, maybe more work is needed to build that and release it.

It could be used as a hook - not in VS Code otherwise it works badly because of VS Code limitations.

It can be available as a globally available NPM package or shell script that calls it. As an alternative to git commit maybe. Maybe as a bin or alias target.

To pre-fill the git message and wait for confirmation (force editing).

e.g.

$ git commit -m $(auto-commit-msg) --edit

MichaelCurrin avatar Apr 15 '21 08:04 MichaelCurrin

This also opens an option for batch committing - use a for loop to iterate over all tracked (could be new but staged) files and make a commit for each one.

MichaelCurrin avatar Apr 15 '21 08:04 MichaelCurrin