[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:       Thomas Friedrichsmeier <thomas.friedrichsmeier () kdemail ! net>
Date:       2020-11-02 17:39:52
Message-ID: 20201102183952.435fa443 () booklife
[Download RAW message or body]


Am Sun, 01 Nov 2020 09:52:27 -0800
schrieb Thiago Macieira <thiago@kde.org>:
> On Saturday, 31 October 2020 08:25:40 PST Thomas Friedrichsmeier
> wrote:
> > thanks for your answer (also to Nate). But to clarify, my question
> > is really: How do I _force_ myself to clean up in time?  
> 
> If you're pushing to a code review system of any kind, it doesn't
> matter. First, you should always review what you've sent for review
> anyway and you can notice you pushed something incomplete. At that
> point don't create the review request or write that it isn't yet
> ready for review.
> 
> Second, your reviewers should notice it's incomplete and won't
> approve.

Well, the context that I'm worrying about, here, is one where reviews
are not mandatory and not the norm.

I ended up writing a local pre-commit hook, which has the advantage of
triggering on the commit directly after "the problem commit", thus
increasing the likelihood there is still a trivial way to sort
things out.

(For good measure I also activated the pre-push hook as mentioned by
Nicolas.)

Thomas

[Attachment #3 (application/pgp-signature)]

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

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