Ages ago I installed Moodle from a tarball and have been customizing it in a private git repo ever since (mostly via modules, but I'm not 100% sure I never changed the base code). Now I want to integrate their upstream repo in a way that will let me get updates while preserving my change history, and will notify me if I've made any changes that conflict with the base code.
My problem is that when I try to merge in the remote repository, git doesn't understand that the two repos contain the same code, and treats every file as an add/add conflict. I want to make it so that git will merge these anyway, and only leave the actual conflicts for me to deal with.
What I've done so far:
- git add remote moodle git://git.moodle.org/moodle.git
- git fetch moodle
- git checkout -b upstream_sync v2.2.1 # tag for the version on which my repo was based (it seemed prudent to get that sync'd up first, then start pulling down later updates; maybe that's not necessary, though?)
- git merge master
Example output from git merge (I see this for every file):
Auto-merging admin/process_email.php
CONFLICT (add/add): Merge conflict in admin/process_email.php
I could go git mergetool and review every merge manually, but I'd really like to avoid that tedium. Thanks in advance to anyone who can help!