auto-commit-msg
auto-commit-msg copied to clipboard
Setup CLI use for outside IDE
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
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.