How do you deal with incomplete commits?

Nicolás Alvarez nicolas.alvarez at
Sat Oct 31 18:34:30 GMT 2020

El sáb., 31 de oct. de 2020 a la(s) 15:19, Thomas Friedrichsmeier
(thomas.friedrichsmeier at escribió:
> Am Sat, 31 Oct 2020 17:09:22 +0100
> schrieb David Hurka <david.hurka at>:
> > Maybe you could write your own commit hook, which prevents commiting
> > anything when `git log --oneline` matches, say /\A INCOMPLETE/x.
> Hm, true, it doesn't have to be a server-side hook. Thanks for pointing
> me in the right direction.
> Thomas

I was going to try writing a client-side hook to block pushes if the
commit message has a certain keyword, but I found the pre-push.sample
included with git already does *exactly* that :D All you need to do is
rename .git/hooks/pre-push.sample to remove the .sample suffix.


More information about the kde-devel mailing list