[phobos] Push or pull?
Lars Tandle Kyllingstad
lars at kyllingen.net
Thu Feb 3 08:45:22 PST 2011
On Thu, 2011-02-03 at 10:17 -0600, Andrei Alexandrescu wrote:
> On 2/3/11 6:21 AM, Jonathan M Davis wrote:
> > On Thursday 03 February 2011 03:30:16 Lars Tandle Kyllingstad wrote:
> >> So… now that we've moved to github, what is the preferred method for
> >> committing stuff to Phobos? Should we continue pushing directly into
> >> the main repository, or should we do it "the git way" and send pull
> >> requests?
> >>
> >> I have a suggestion for a workflow:
> >>
> >> 1. Commit and push changes to own Phobos fork.
> >> 2. Send pull request to main Phobos repo.
> >> 3. Someone, which can be anyone in the Phobos team, reviews the code and
> >> merges it.
> >>
> >> This gives a certain amount of quality control, in that at least one
> >> other person sees the code before it is admitted, while not putting the
> >> responsibility of reviewing all incoming code on one person.
> >>
> >> How does that sound?
> >
> > Well, I'm not sure that _every_ commit needs to be reviewed by another person
> > (e.g. if you're just doing documentation changes or they're changes that you're
> > sure of).
>
> I think every commit should be seen by at least two persons. It has
> happened that an apparently trivial fix has caused trouble.
...and some of those times, the trouble surfaced *after* other people
had made further commits, making it difficult to figure out just which
commit caused it.
I agree that all code should be reviewed, even if it's just a couple of
people saying "looks good" in the pull request discussion. The one
making the request can even take care of merging the code, once enough
people have given their "ok".
-Lars
More information about the phobos
mailing list