From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Palmer Dabbelt <palmer@sifive.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: "git reset --hard" on riscv for-linux-next branch
Date: Tue, 28 Nov 2017 09:27:30 +1100 [thread overview]
Message-ID: <20171128092730.73b6fa63@canb.auug.org.au> (raw)
In-Reply-To: <mhng-99ec53b8-be79-4eb8-90fe-fe2ef0b6cafb@palmer-si-x1c4>
Hi Palmer,
[Sorry for the slow reply]
On Wed, 22 Nov 2017 11:01:57 -0800 (PST) Palmer Dabbelt <palmer@sifive.com> wrote:
>
> Is it OK to rewrite history on my for-linux-next branch? Since we got upstream
> I've started getting patches from various people and as a result I now have a
> bunch of branches with independent commits on them. In an ideal world I'd like to
> do something like
>
> git checkout for-linux-next
> git reset --hard torvalds/master # or maybe the latest tag?
Resetting to a tag is preferred. Though once you choose a tag (-rc1 or
-rc2 maybe) its nice to stick to it. If some commits are based on
later places in Linus' tree, they will bring the necessary commits with
them.
> for branch in $(list-staging-branches-for-linux-next)
> do
> git merge $branch
> done
> git push --force palmer for-linux-next
>
> Is that an OK thing to do regularly in the branch I give to you? I can find a
> bunch of information on how to use linux-next, but not for people in it.
Seems fine, a few other linux-next included branches are managed just
like that. Alternatively, if the branches you are merging never rebase
(and they really shouldn't in most cases), you could just remerge the
ones that change every now and then (rather than stating from
scratch). This may mean that you need to tidy up your tree a week or
so before sending it to Linus, but it will give your developers
something a bit more stable to work with.
Either works for me.
--
Cheers,
Stephen Rothwell
prev parent reply other threads:[~2017-11-27 22:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-22 19:01 Palmer Dabbelt
2017-11-27 22:27 ` Stephen Rothwell [this message]
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=20171128092730.73b6fa63@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=linux-kernel@vger.kernel.org \
--cc=palmer@sifive.com \
/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
all inboxes | Powered by JetHome®