Conversation
--msg-filename last in arg list--msg-filename last in argument list
sandydoo
left a comment
There was a problem hiding this comment.
args are for end users to set. If a hook is designed in such a way that it cannot handle filenames as arguments, ie. without an option like --msg-filename, then we usually expose a settings.flags or, better yet, individual options.
|
I agree that the design of |
Not entirely sure what you mean by that |
If we add |
Ah, I get it now. That's if we add individual As far as API changes, that isn't a big deal in practice. These hook tools rarely change in practice. And if they do, well, we fix it here. |
`gitlint.args` can not be used since pre-commits appends it to the commandline but the `--msg-filename` option has to come last. See cachix#641 for more information.
--msg-filename last in argument listflags option
|
Ok, I added the |
The gitlint hook requires
--msg-filenameto appear last on the command line such that it is in front of the commit message filename. This is not the case when theargsoption is set. To fix this, we append--msg-filenameto theargsoption.Fixes #641.