All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: adeos-main <adeos-main@gna.org>
Subject: Re: [Adeos-main] Re: [RFC] git workflow
Date: Tue, 19 Dec 2006 14:57:54 +0100	[thread overview]
Message-ID: <4587EFE2.8040302@domain.hid> (raw)
In-Reply-To: <4587ECF0.4000907@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 2261 bytes --]

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> Jan Kiszka wrote:
>>
>>> ...
>>> [Keeping up-to-date]
>>> 1. The original kernel tree may have been updated, and the ipipe patch
>>>    needs to be rebased
>>>
>>>    # git fetch
>>>    # git rebase origin
>>
>> I meanwhile learned that rebasing doesn't work well with public git
>> tree. Once you pushed some tree, say, linux-2.6.19 + ipipe-patch1..n
>> out, you cannot rebase to 2.6.20 + ipipe-patch1..n without breaking the
>> linear history.
>>
>> Either we only push out final trees (but that would lock-out early
>> testers that may want to pull from devel-head), or we need to evolve
>> with ipipe patches deeply merged. That means when we have 2.6.19 + ipipe
>> cleanly on top of it, pulling 2.6.20 origin may cause conflicts (like
>> the paravirt stuff does on i386 ATM). We would then have to merge the
>> upstream patches into the I-pipe tree, effectively adopting them to
>> I-pipe. An extraction of a potential I-pipe patch stack would be more
>> complicated that way, but not infeasible.
>>
>> Comments?
> 
> I am a complete git newbie myself. But the simpler way I would imagine

Then I'm at least not alone. :)

> to develop the I-pipe would be to create one branch for each version of
> the kernel. We would then use a script to generate all architectures
> specific patches.
> 
> Porting from one version to the next means merging the difference
> between the ipipe branch for linux 2.x.y and the linux 2.x.y sources
> with the linux-2.x.y+1 sources.

Of course, we could branch per major release and rebase on top of new
kernel versions. But that would mean we have to wait until the official
release to publish our trees. Otherwise, the risk would be the later
fixes require a rebase.

The point is likely how to extract ipipe stuff from a fully merged git
tree. I think this should not be that tricky - as long as every patch in
some series only touches existing files exclusively (i.e. no two patches
modify the same source file). Then we could simply apply some diff mask
(git diff origin..master file1 file2 file3...) to generate those
individual patches for reference to anyone willing to port stuff to a
new arch or board.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  reply	other threads:[~2006-12-19 13:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 18:16 [Adeos-main] [RFC] git workflow Jan Kiszka
2006-12-19 13:31 ` [Adeos-main] " Jan Kiszka
2006-12-19 13:45   ` Gilles Chanteperdrix
2006-12-19 13:57     ` Jan Kiszka [this message]
2006-12-19 14:23       ` Gilles Chanteperdrix
2006-12-19 14:40         ` Jan Kiszka
2006-12-19 16:42           ` Wolfgang Denk
2006-12-19 16:59             ` Jan Kiszka
2006-12-19 21:30               ` Wolfgang Denk
2006-12-20  9:33                 ` Jan Kiszka
2006-12-20 11:59                   ` Wolfgang Grandegger
2006-12-20 13:13                     ` Gilles Chanteperdrix
2006-12-20 13:38                       ` Wolfgang Grandegger
2006-12-20 13:49                         ` Jan Kiszka

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=4587EFE2.8040302@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=adeos-main@gna.org \
    --cc=gilles.chanteperdrix@xenomai.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.