# retrieving a diff from git

6 messages from 2008-10-14 to 2008-10-15. Participants: Folkert van Heusden, Alex Riesen, Matthieu Moy, Christian Jaeger.
Thread: https://gitlist.dev/t/15895

## Folkert van Heusden, 2008-10-14 14:51

Subject: retrieving a diff from git
Message-ID: <20081014145112.GR22427@vanheusden.com>
URL: https://gitlist.dev/e/20081014145112.GR22427%40vanheusden.com

```
Hi,

How would I retrieve the 'kmemcheck' patches from git for the 2.6.27
kernel? I browsed to the url
http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fx86%2Flinux-2.6-tip.git&a=search&h=HEAD&st=commit&s=kmemcheck
but could not find how to retrieve that diff.


Folkert van Heusden

-- 
Ever wonder what is out there? Any alien races? Then please support
the seti@home project: setiathome.ssl.berkeley.edu
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

```

## Alex Riesen, 2008-10-14 17:01

Subject: Re: retrieving a diff from git
Message-ID: <81b0412b0810141001w46227afam70123237025a2d4d@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0810141001w46227afam70123237025a2d4d%40mail.gmail.com
In-Reply-To: <20081014145112.GR22427@vanheusden.com>

```
2008/10/14 Folkert van Heusden <folkert@vanheusden.com>:
> How would I retrieve the 'kmemcheck' patches from git for the 2.6.27
> kernel? I browsed to the url
> http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fx86%2Flinux-2.6-tip.git...
> but could not find how to retrieve that diff.

Well, you can of course just click on "commitdiff" (and "raw" afterwords)
for every commit, but ... Have you considered using Git for that?

```

## Folkert van Heusden, 2008-10-14 17:20

Subject: Re: retrieving a diff from git
Message-ID: <20081014172048.GW22427@vanheusden.com>
URL: https://gitlist.dev/e/20081014172048.GW22427%40vanheusden.com
In-Reply-To: <81b0412b0810141001w46227afam70123237025a2d4d@mail.gmail.com>

```
> > How would I retrieve the 'kmemcheck' patches from git for the 2.6.27
> > kernel? I browsed to the url
> > http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fx86%2Flinux-2.6-tip.git...
> > but could not find how to retrieve that diff.
> Well, you can of course just click on "commitdiff" (and "raw" afterwords)
> for every commit,

Hmmm the outcome does not apply cleanly to 2.6.27.

> but ... Have you considered using Git for that?

and check out the whole tree using Git? I did consider but then I would
not have all bells and whistles to generate a Debian kernel package.


Folkert van Heusden

-- 
MultiTail is a versatile tool for watching logfiles and output of
commands. Filtering, coloring, merging, diff-view, etc.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

```

## Alex Riesen, 2008-10-14 17:29

Subject: Re: retrieving a diff from git
Message-ID: <81b0412b0810141029l7f37426axfc0646fa114fd3b5@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0810141029l7f37426axfc0646fa114fd3b5%40mail.gmail.com
In-Reply-To: <20081014172048.GW22427@vanheusden.com>

```
2008/10/14 Folkert van Heusden <folkert@vanheusden.com>:
>> > How would I retrieve the 'kmemcheck' patches from git for the 2.6.27
>> > kernel? I browsed to the url
>> > http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fx86%2Flinux-2.6-tip.git...
>> > but could not find how to retrieve that diff.
>> Well, you can of course just click on "commitdiff" (and "raw" afterwords)
>> for every commit,
>
> Hmmm the outcome does not apply cleanly to 2.6.27.

That's because the patches are not based on 2.6.27.

>> but ... Have you considered using Git for that?
>
> and check out the whole tree using Git? I did consider but then I would
> not have all bells and whistles to generate a Debian kernel package.

I afraid, that in this particular case you have no other choice, but ask Ingo.

```

## Matthieu Moy, 2008-10-14 17:56

Subject: Re: retrieving a diff from git
Message-ID: <vpqfxmz5acr.fsf@bauges.imag.fr>
URL: https://gitlist.dev/e/vpqfxmz5acr.fsf%40bauges.imag.fr
In-Reply-To: <20081014172048.GW22427@vanheusden.com>

```
Folkert van Heusden <folkert@vanheusden.com> writes:

>> but ... Have you considered using Git for that?
>
> and check out the whole tree using Git? I did consider but then I would
> not have all bells and whistles to generate a Debian kernel package.

You can probably clone the Kernel repository, generate a huge diff
with git diff, and apply it to your Debian tree with patch or
git apply, but if the patch serie is not based on your tree, this
won't help with conflicts.

-- 
Matthieu

```

## Christian Jaeger, 2008-10-15 10:12

Subject: Re: retrieving a diff from git
Message-ID: <48F5C218.3080807@jaeger.mine.nu>
URL: https://gitlist.dev/e/48F5C218.3080807%40jaeger.mine.nu
In-Reply-To: <20081014172048.GW22427@vanheusden.com>

```
Folkert van Heusden wrote:
>> Well, you can of course just click on "commitdiff" (and "raw" afterwords)
>> for every commit,
>>     
>
> Hmmm the outcome does not apply cleanly to 2.6.27.
>
>   
>> but ... Have you considered using Git for that?
>>     
>
> and check out the whole tree using Git? I did consider but then I would
> not have all bells and whistles to generate a Debian kernel package.
>   

I'm tempted to think that you should move (merge / cherry-pick or 
rebase) the relevant changes onto 2.6.27 using Git, and then take the 
diff from there (on the theory that Git could reduce the number of 
conflicts that you would have to resolve manually, although I'm not sure 
how much this is the case); the resulting diff will then apply cleanly 
to a 2.6.27 tarball without using Git.

Christian.

```
