Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Developer branches on proj/gentoo
Date: Tue, 11 Aug 2015 14:24:54
Message-Id: 20150811142442.GA27357@linux1
In Reply to: Re: [gentoo-dev] Developer branches on proj/gentoo by hasufell
1 On Tue, Aug 11, 2015 at 04:12:29PM +0200, hasufell wrote:
2 > On 08/11/2015 03:52 PM, Patrice Clement wrote:
3 > > Hi there
4 > >
5 > > According to https://wiki.gentoo.org/wiki/Gentoo_git_workflow#Branching_Model,
6 > > "there may be developer-specific, task-specific, project-specific branches
7 > > etc". As far as I understand, it means I can go and create my own branch on the
8 > > main repository and push it and it gets spread all over the place. Is that
9 > > correct?
10 > >
11 > > Could someone explain to me the rationale behind this decision?
12 > >
13 > > Truth to be told, I kinda dislike the fact any developer can do this.
14 > >
15 > > proj/gentoo should be kept for "serious business" i.e. commits that affects the
16 > > tree. On the long run, if everybody goes down that road, we will see flourish
17 > > numerous branches (who said unmaintained?), all stalled at a different state of
18 > > the main repo, and it will only generate a lot of noise and confusion for
19 > > nothing. Further, since we've moved over to git, the main tree now gets
20 > > replicated to github and we all have github accounts here, don't we? Which makes
21 > > the whole forking and submitting PRs a cinch.
22 > >
23 > > If a developer wants to tinker with the tree, he can fork it to its github
24 > > devspace, fiddle around, and later on send us a PR back with his changes to
25 > > merge.
26 > >
27 >
28 > Branches can still make sense, even if the model is that everyone has
29 > his own fork, see
30 > http://nvie.com/posts/a-successful-git-branching-model/
31 > for an example.
32 >
33 > I currently don't see a reason to limit the workflow to one master branch.
34 >
35 > It doesn't necessarily generate noise or confusion and there are various
36 > ways to only fetch specific branches if you really need to do so. Git's
37 > main advantage _are_ branches and it has sufficient methods to deal with
38 > a lot of them.
39 >
40 > If they cause trouble, we can still prune them and enforce stricter
41 > rules, but since we don't even know how they will be used, this point is
42 > moot yet.
43
44 I'm with mgorny and hasufell on this; I'm not worried about regulating
45 branches that much.
46
47 Also, since we have our own tree on g.g.o, the tree on github is a
48 mirror, so we should treat it as such, e.g. it could go down at any
49 point, and if it does, we can keep working based on our official tree.
50
51 There's even a way in git itself to do something like a github pull
52 request (see the git request-pull command), so we don't need to rely on
53 github for that.
54
55 William

Attachments

File name MIME type
signature.asc application/pgp-signature