Closed fmichonneau closed 9 years ago
Thanks for taking the initiative to split this out @fmichonneau!
Can someone remind me of the history of this material? @tracykteal? I have this vague recollection that this was originally forked from the Software Carpentry material. If that is the case then it makes the history extraction more complicated because we should also be trying to recover the Software Carpentry history (e.g., see #119). If I'm wrong about this then this split should probably be in pretty good shape, though we may want to get the data commits cherry-picked in as well (or just plan on immediately switching over to the Portal Project Teaching Database).
I did a little digging through the histories and this material does in fact fork from the Software Carpentry material. The good news is that it forks from a single isolated commit by @sarahsupp, https://github.com/swcarpentry/r-novice-inflammation/commit/2320a65d0f22331d3297425602d067ee101d53ff, which is the original addition of the material. So, this should be a fair bit simpler than extracting the history for the shell lesson.
@fmichonneau - did you want to give combining these two different sets of history a try? Off the top of my head we're probably looking at:
(Note: the odds that I've foreseen all of the complexities off the top of my head are low)
If that sounds like it's manageable great. If it sounds a bit complicated just let me know and I'll be happy to tackle it.
[1] https://github.com/datacarpentry/datacarpentry/commit/c653f645ec08a34b6d45c630687825e550ddeddc
Thanks @ethanwhite. I do now remember that it was @sarahsupp who did this first set of lessons.
Here's what I have so far:
mkdir R-ecology
cd R-ecology
git init
# SWC R lesson root
git remote add swcremote git@github.com:swcarpentry/r-novice-inflammation.git
git fetch swcremote
git cherry-pick 2320a65d0f22331d3297425602d067ee101d53ff
# Remove files and directories not in main directory of DC lesson
git rm -rf data/ 02-func-R.md 03-loops-R.md 04-cond-colors-R.md 05-testing-R.md 06-best_practices-R.md 07-knitr-R.md ggplot.pdf guide.md rblocks.R
git commit -m "Remove files and directories not used by Data Carpentry"
# DC R lesson
git remote add dcremote git@github.com:datacarpentry/datacarpentry.git
git fetch dcremote
git checkout dcremote/master
git checkout -b dcR
git filter-branch --prune-empty --subdirectory-filter lessons/R/ dcR
git reset --hard HEAD
echo "Merging SWC and DC material"
git checkout master
git merge dcR
For some reason the initial commit ends up as one of the most recent commits after the merge.
@wking - is there a way to end up with the history in a more logical order?
After having spent time reading up on using rebase
with --onto
and --root
I think I now have the history looking like it should.
@fmichonneau - can you take a look at: https://github.com/datacarpentry/R-ecology
when you get the chance and make sure everything looks OK. At that point we're done with this and with the full splitting out of the repos and datacarpentry
can be officially put into mothballed.
This issue was moved to datacarpentry/test#2
Following @ethanwhite notes, I tried to split the R lesson.
Please check https://github.com/fmichonneau/R-intro-ecology and let me know if you think something is missing. I used: