public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Haavard Skinnemoen <hskinnemoen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Revised custodian git writeup
Date: Tue, 22 Jan 2008 19:39:35 +0100	[thread overview]
Message-ID: <20080122193935.400cf20f@siona> (raw)
In-Reply-To: <20080122163449.A174B2430C@gemini.denx.de>

On Tue, 22 Jan 2008 17:34:49 +0100
Wolfgang Denk <wd@denx.de> wrote:

> In message <20080122152035.22f1dffd@dhcp-252-066.norway.atmel.com>
> you wrote:
> >
> > Other people (Linus, for example) do not. I guess I'll just have to
> > use different workflows for my u-boot and Linux work then...but I'm
> > not quite done arguing yet ;-)
> 
> I appreciate your comments, really. I don't claim to be  perfect,  on
> contrary  -  git is still new to me and I'm trying to find my way. If
> it turns out that my ideas are  wong,  or  that  following  my  style
> imposes  a  high  and  avoidable  burden to many others I will try to
> adapt.

Good. I think I understand your position better now, and I think we
actually agree on the fundamental goals.

> I can do this if really needed, but  I  see  trouble  ahead.  I  know
> myself.  I  will  see  a  pull  request for repo XXX and pull without
> specifying a branch. Only when I will reply to the message after
> I'm done  to  ACK  it  I  will  notice that somewhere near the end of
> the message there is a note saying "please pull from  branch  YYY".
> This already happened, so I know what I'm talking about ;-)

Just triple-click on the line containing the repository URL followed by
the branch name and paste it into your terminal after "git pull".

IIRC, this is why Linus insists that people always put the repository
URL and the branch on the same line in pull requests, and why
git-request-pull does this automatically.

> > If you only ever want to pull from the master branch, and the master
> > branch can't be rebased, how are we supposed to rebase?
> 
> Consider merging into your master branch as the  first  step  of  the
> pull  request  - this is the point where you give up control over the
> patch. Assume I would pull the very same moment. How  do  you  rebase
> after I have pulled from your branch?

Right. This is the way I usually do it, except that I create a fresh
branch from the latest upstream master, and that I consider giving up
control over the patches the moment I send the pull request, not
necessarily when I push.

But these are just details. Your way seems workable too, now that I
understand it fully. Thanks for explaining.

> > > I don't think that we are different types of users - maybe  from
> > > the kind  of  work  we  do,  but  I  don't  see  why we should
> > > access the custodian's repository differently. Actually I think
> > > it's  a  pretty good idea if others test the very same code I
> > > will be pulling later.
> > 
> > Sure, but some patches may require more testing than others.
> 
> Agreed. Hold them in testing branches as long  as  testingis  needed.
> When they are ready to be merged into mainline, they can go into your
> master branch, too. And from there I willpick them up.

Ok. The only issue I have with this approach is that people may be less
likely to test them when they're not in "master". But I guess
announcing things clearly might help -- perhaps by creating a new
"testing" branch when submitting a patch series for review and mention
this in the introductory email.

> > I think you'll receive more well-tested code if you allow
> > custodians to commit patches to "master" earlier. But this
> > necessarily means either being allowed to rebase the "master"
> > branch or using a different branch for merging (which only contains
> > code that has spent a fair amount of time in the master branch.)
> 
> To me, your master branch is your "stable" code. Code that needs more
> testing should use a different branch name. Especially  if  you  have
> different pots on the fire at the same time.
> 
> > IOW, one branch is for stuff that is ready to merge, the other is
> > for the same _plus_ stuff that needs testing. I think using
> > "master" for
> 
> You may want several independet "testing"  branches,  not  only  one.
> master  seems not the best choice to me. I think we should use master
> == stable.

Good point.

> > the latter will give the to-be-tested code much more exposure
> > before it hits mainline, and that's IMO a good thing.
> 
> I understand your position, too. As mentioned above,  I  don't  claim
> that my suggestion is perfect or optimal. I developed my own style of
> working, others developed theirs. This discussion helps to figure out
> how to make co-operation easier. Thanks!

Yes, I think I understand now how I can make this work with only a
couple of minor adjustments to my workflow. Thanks!

Haavard

  parent reply	other threads:[~2008-01-22 18:39 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22  1:44 [U-Boot-Users] Revised custodian git writeup gvb.uboot
2008-01-22  7:52 ` Markus Klotzbücher
2008-01-22  8:55 ` Wolfgang Denk
2008-01-22  9:50   ` Haavard Skinnemoen
2008-01-22 13:45     ` Wolfgang Denk
2008-01-22 14:20       ` Haavard Skinnemoen
2008-01-22 14:42         ` Mike Frysinger
2008-01-22 16:34         ` Wolfgang Denk
2008-01-22 18:23           ` Joakim Tjernlund
2008-01-22 18:39           ` Haavard Skinnemoen [this message]
2008-01-22 13:50     ` Jerry Van Baren
2008-01-22 14:10       ` Wolfgang Denk
2008-01-22 13:32   ` Jerry Van Baren
2008-01-22 14:03     ` Wolfgang Denk
2008-01-22 14:26       ` Markus Klotzbücher
2008-01-22 16:36         ` Wolfgang Denk
2008-01-22 22:47           ` Jerry Van Baren
2008-01-22 23:32             ` Wolfgang Denk
2008-01-23  3:15               ` gvb.uboot
2008-01-23 12:04               ` Martin Krause
2008-01-23 12:47                 ` Wolfgang Denk
2008-01-23 17:27                   ` Martin Krause
2008-01-23 17:30                     ` Haavard Skinnemoen
2008-01-22 14:38       ` Haavard Skinnemoen
2008-01-22 14:35     ` Jerry Van Baren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080122193935.400cf20f@siona \
    --to=hskinnemoen@atmel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox