Re: Diff between the non-head git work dir and non-git kernel sources
- From
- lamikr <lamikr@cc.jyu.fi>
- Date
- Nov 8, 2005, 23:52 UTC
- Message-ID
- <43713A4A.9000101@cc.jyu.fi>
- In-Reply-To
- <7vacgeeqb3.fsf@assigned-by-dhcp.cox.net>
Junio, thanks for the help, I think the problems are now vanished :-)
Junio C Hamano wrote:
Show 22 quoted lines
>lamikr <lamikr@cc.jyu.fi> writes: > >Let me understand what trees are involved. I am not sure from >your description. > > 1. You based your own development on some kernel snapshot. > > 2. The kernel snapshot you based 1. is "some version". > > 3. Mvista has d24aff0b commit that contains their changes to > a kernel snapshot (the same "some version" as 2). > > 4. Mvista now has different version, descendant of 3. This is > the top of omap tree you cloned. > > --------------------------->[2] yours > / > [1]------------->[3]----------->[4] omap tip > >Is this the commit history graph you have? > >
Almost like this.
a) I used 2.6.14-rc5.tar.bz2 as a base
b) Then I applied
2.6.14-rc5.tar.bz2 and
http://www.muru.com/linux/omap/patches/patch-2.6.14-rc5-omap1.bz2
on top of that. This is a snapshot from the OMAP git tree. [1]
c) I merged my own development to these sources --> [2]
d) I manually applied all patches released to omap tree between
patch-2.6.14-rc5-omap1.bz2 and
commit-id d24aff0bd3e788d69a45a9d1b1eecda88d847a41 --> [5]So the relation between kernel version [5] that I have in non git tree is basically following and current omap git tree is following kind.
---my changes-->[2]----->[5] my source tree (non git)
/ /
[1]----------------------->[3]---------->[4] omap git (currently in 2.6.14 level)I needed to change git working directory from state [4] to state [3] so that I could create the diff between [3] and [5]. (And then try to merge it back on top of [4]...)
Show 13 quoted lines
>>I would now like to revert the sources in git working dir to state that >>was after this d24aff0bd3e788d69a45a9d1b1eecda88d847a41 commit >>and then make the diff between that kernel source version and my non-git >>source version. >> >> > >You lost me here. Presumably the ultimate goal of what you are >doing is either one of the following: > >(1) port your good changes between [1] and [2] on top of [4], or > >
Yes, my goal is to have in future a own local git branch that follows mvistas git tree. (and mvistas tree follows mainline) For this I have found good looking documentation.
Show 15 quoted lines
>(2) port progresses in omap tree between [3] and [4] (or perhaps
> [1] and [4], including changes betwen [1] and [3]) on top of
> your tree [2].
>
>But I am not sure what you mean by the above paragraph. You
>sound as if you want to find out the differences between [3]
>("revert it to d24aff") and [2] ("your non-git source").
>
>If that is what you want instead, assuming you have your kernel
>tree in linux-lamikr and omap tree in linux-omap:
>
> $ cd linux-omap
> $ git checkout -b snapshot-d24aff0b d24aff0b
>
>This was the thing I wanted to know and it worked. I made something wrong in my own attempts and I always failed to revert to own version. (Propaply because I tried to create tag names)
Show 20 quoted lines
>Another possibility would be to move your development to .git; >if you know the commit id of [1], then you can branch from that >commit and replay your development trail step by step up to [2]. >This obviously requires that you used some SCM to keep track >your development trail between [1] and [2]. > >Once you have done that (and assuming your branch is called >lamikr), you could compare omap and your tip with: > > $ git checkout lamikr > $ git diff lamikr origin > >Or even merge omap tip into your branch: > > $ git checkout lamikr > $ git pull . origin > >all inside linux-omap/ directory. > >
Well, I already started diff running in the background by using the first solution but I will also try this one for the comparison.
Mika