[Qt-creator] prepare-commit-msg and commit-msg hooks

Oswald Buddenhagen oswald.buddenhagen at qt.io
Tue Jan 9 12:04:35 CET 2018


On Tue, Jan 09, 2018 at 10:43:09AM +0100, Tobias Hunger wrote:
> Hooks do get run at this point, but it is admittedly a bit late for
> the pre-commit or the prepare-commit-msg hook. Do you have any idea
> how we can improve this -- without reimplementing all the logic built
> into git?
> 
by providing a stub editor and running git commit with $EDITOR pointing
to that stub as soon as the dialog is opened. from there it's just a bit
of ipc, which can be mostly ripped off from the debugger stub.



More information about the Qt-creator mailing list