[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How do you deal with incomplete commits?
From:       Nicolás_Alvarez <nicolas.alvarez () gmail ! com>
Date:       2020-10-31 18:34:30
Message-ID: CANPC-ts9BE+vxc_9v_sATQPzNN5M_4Ef2hyC_yQYC2YCzWJ62Q () mail ! gmail ! com
[Download RAW message or body]

El sáb., 31 de oct. de 2020 a la(s) 15:19, Thomas Friedrichsmeier
(thomas.friedrichsmeier@kdemail.net) escribió:
>
> Am Sat, 31 Oct 2020 17:09:22 +0100
> schrieb David Hurka <david.hurka@mailbox.org>:
> > 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.

-- 
Nicolás
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic