I am in the following situation:
- There's an Open Source Project (AT91B) maintained under git, doing regular Releases.
- At release 3.7.0 this project is cloned by ACME and modified.
- AT91B is updated and does more releases
- ACME does NOT actively track AT91B.
- Now AT91B is at 3.7.1
- I have access (I can "git clone") to both git repos.
What I need is a patch (or a set of patches, if necessary) to apply to AT91B-3.7.1 tarball to integrate ACME changes (consisting of several new files and some minor tweak to the existing ones).
I understand this should be fairly standard git stuff (I do not know git very well, just basic stuff; merging is still out of my radar, but I guess I'll have to learn). Problem is I need to work with tarballs(original releases) + patches(homebuilt, if needed).
How do I produce such a patch [set]?
UPDATE:
I tried using git format-patch -M -B -C -k --stdout refs/remotes/origin/at91bootstrap-3.x >my.patch
, but this is no good because it produces multiple entries for each file (apparently one for each commit) and then patch
usage results in multiple rejects (IIRC only the first succeds).
How do I "flatten" the patches?