mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-28 09:24:14 +01:00
Add instructions for migrating commits to ArduinoCore-avr
This commit is contained in:
parent
ae8ddd6499
commit
c18f679f34
@ -7,3 +7,40 @@ The official Arduino cores can now be found here:
|
||||
- https://github.com/arduino/ArduinoCore-avr
|
||||
- https://github.com/arduino/ArduinoCore-sam
|
||||
- https://github.com/arduino/ArduinoCore-samd
|
||||
|
||||
##### Migrating commits
|
||||
If you need to move commits and/or pull requests over from this
|
||||
repository into the separate core repositories, an approach to handle
|
||||
that mostly automatically is suggested below. These are for the avr
|
||||
core, but with some changes, it should apply to sam as well.
|
||||
|
||||
# Start out in the Arduino repo, by rebasing your branch on top of the
|
||||
# last commit that still contained the avr core. This makes sure that
|
||||
# any conflicts are resolved before transferring the commits, since git
|
||||
# am is not so helpful with conflicts.
|
||||
git checkout my-branch
|
||||
git rebase -i 950d88dcbe7b9b2d348fb25b5ffcd0c6d2d30b97
|
||||
|
||||
# Then, generate patch files for all of your commits, into the patches
|
||||
# directory.
|
||||
git format-patch -o patches 950d88dcbe7b9b2d348fb25b5ffcd0c6d2d30b97
|
||||
|
||||
# These steps are optional, but if your commits contain changes to other
|
||||
# files than the avr core, this re-applies your commits with only the
|
||||
# avr core changes, and regenerates the patches
|
||||
git checkout -b tmp-branch 950d88dcbe7b9b2d348fb25b5ffcd0c6d2d30b97
|
||||
git am --include 'hardware/arduino/avr/*' patches/*
|
||||
rm -rf patches/
|
||||
git format-patch -o patches 950d88dcbe7b9b2d348fb25b5ffcd0c6d2d30b97
|
||||
|
||||
# Then, in the ArduinoCore-avr repo, create a new branch on the commit
|
||||
# matching the Arduino repo.
|
||||
git checkout -b my-branch b7c607663fecc232e598f2c0acf419ceb0b7078c
|
||||
|
||||
# Apply our previously generated patches (update the path to point to
|
||||
# wherever you generated the patches previously). -p4 tells git am to
|
||||
# strip the a/hardware/arduino/avr part of the paths before applying.
|
||||
git am -p4 /path/to/patches/*
|
||||
|
||||
# Finally, rebase on top of master
|
||||
git rebase origin/master
|
||||
|
Loading…
Reference in New Issue
Block a user