OESF Portables Forum

Model Specific Forums => Gemini PDA => Gemini PDA - Linux => Topic started by: ali1234 on June 07, 2018, 03:18:00 pm

Title: Gemini kernel repository with grafted history
Post by: ali1234 on June 07, 2018, 03:18:00 pm
The Gemini kernel release from Planet (https://github.com/dguidipc/gemini-android-kernel-3.18) has no git history. I spent the past week writing some software (https://github.com/ali1234/gitxref) to correct this problem.

The result is a repository (https://github.com/ali1234/linux-gemini) where unmodified files are linked back to their original upstream history. This covers about 90% of the files in the repository.

The process is mostly automated and was done like this:The result is this: https://github.com/ali1234/linux-gemini/tre...d075f04d4f7065a (https://github.com/ali1234/linux-gemini/tree/20ba641d006ed0335de2c06ecd075f04d4f7065a)

This should be considered a proof of concept. There may be errors in the merge. There may also be more upstream repositories which would be candidates for merging in order to produce a smaller diff. There may even be a better approach to the whole thing. Suggestions are welcome, here or in github issues.
Title: Gemini kernel repository with grafted history
Post by: Beiriannydd on June 08, 2018, 10:01:15 am
Quote from: ali1234
    [/li]
The Gemini kernel release from Planet (https://github.com/dguidipc/gemini-android-kernel-3.18) has no git history. I spent the past week writing some software (https://github.com/ali1234/gitxref) to correct this problem.

The result is a repository (https://github.com/ali1234/linux-gemini) where unmodified files are linked back to their original upstream history. This covers about 90% of the files in the repository.

The process is mostly automated and was done like this:The result is this: https://github.com/ali1234/linux-gemini/tre...d075f04d4f7065a (https://github.com/ali1234/linux-gemini/tree/20ba641d006ed0335de2c06ecd075f04d4f7065a)

This should be considered a proof of concept. There may be errors in the merge. There may also be more upstream repositories which would be candidates for merging in order to produce a smaller diff. There may even be a better approach to the whole thing. Suggestions are welcome, here or in github issues.[/quote]

Thanks! Your git-fu is strong.  You might be able to pick up more of the files if they exist in the source if you walk the git log for changes to that file looking for a minimal diff.