From: Michael Tokarev <mjt@tls.msk.ru>
To: Willy Tarreau <w@1wt.eu>
Cc: Linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [SOT] GIT usage question
Date: Wed, 11 Oct 2006 23:48:57 +0400 [thread overview]
Message-ID: <452D4AA9.4030700@tls.msk.ru> (raw)
In-Reply-To: <20061011182415.GE5050@1wt.eu>
Willy Tarreau wrote:
> On Wed, Oct 11, 2006 at 10:54:50PM +0400, Michael Tokarev wrote:
[]
>> o origin which points to Linus's 2.6.19-pre
>> o libata, which is current libata tree
>> o 2.6.18 release -- the kernel I'm running right now.
>>
>> I want to get changes *for libata subsystem* in origin or
>> libata (libata is just changes which are on the way to Linus,
>> and current difference is very minor), to apply against 2.6.18.
>> Ie, in short, changes which went to origin *from* libata.
>>
>> Is it possible?
>
> If I understand what you want to do, you just have to do this :
>
> $ git-checkout 2.6.18
> $ git-pull . libata
>
> This will merge in 2.6.18 everything that's in libata. If you
It will merge everything wich is in current 2.6.19-pre, too.
Ie, it will be current 2.6.19 tree basically, or 'origin' in
my case.
(currently, the only 2 differences between origin and libata
is a tiny bugfix and winbond driver, so using libata or origin
here is basically the same thing).
But I wanted to _omit_ everything _but_ libata - stuff which
*come* to Linus's tree from libata) from the diff.
So it looks like the key idea is to find which commits are
relevant. With libata as an example, it's relatively easy -
git-diff 2.6.18..libata drivers/ata
( or 2.6.18..origin drivers/ata -- as the two trees are
almost the same currently), plus some includes.
Ie, some other ways needs to be used to *identify* which parts
of the whole thing is needed, in this example it's easy as
everything is located in the same dir.
With more complex changes, things aren't that simple if at all
possible, BUT there's almost no chances that the resulting
"patched-2.6.18" will ever compile after trying to apply that
complex changes, anyway ;)
But thanks anyway ;)
/mjt
next prev parent reply other threads:[~2006-10-11 19:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 18:54 [SOT] GIT usage question Michael Tokarev
2006-10-11 18:24 ` Willy Tarreau
2006-10-11 19:48 ` Michael Tokarev [this message]
2006-10-11 19:29 ` Francois Romieu
2006-10-11 19:54 ` Michael Tokarev
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=452D4AA9.4030700@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=w@1wt.eu \
/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