Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] git patch files

On 15 August 2011 23:13, John Cortell <rat042@xxxxxxxxxxxxx> wrote:
At 05:07 PM 8/15/2011, Andrew Gvozdev wrote:
OK, that is the new commit. What about 98fa6c5..30760cf, this one is not in CDT repo either?

That's not a commit. That's some sort of index hash.

It's actually two blobs.  Blobs are a core datatype in git: commits point to trees which point to blobs: 

For each file in the diff, git is emitting the diff that corresponds to the change produced by diffing the two blobs.  If the parent commits (& by proxy blobs) aren't in the central CDT repository then applying the patch will fail.

When you create the patch in egit the patch is against the commit's parent. Perhaps this is where the issue lies.   You either need to ensure that the commit's parent is part of the upstream CDT repository, or egit should support creating a patch against an arbitrary commit (like git diff does). 

I've created a bug:


Back to the top