I have two different branches. The newer branch has had its directory structure completely changed.
It's something like:
Old branch:
project/
manager/
widgets/
components/
workers/
New branch:
factory/
widgets/
components/
workers/
Git recognized some but not all of the directory changes, so when I merge changes made in the older branch to the newer branch, it recognizes that they should be made in the corresponding directory in the newer branch.
So for example if I make a bug fix in the old branch on project/manager/widgets/utils.py
it also gets updated on factory/widgets/utils.py
.
However, for some reason some of the corresponding directories didn't get associated. So when I do a merge there are many files that are marked as deleted in the newer branch. So for example if I make an improvement in the old branch to project/manager/workers/base.py
the merge reports:
CONFLICT (modify/delete): project/manager/workers/base.py deleted in HEAD and modified in old-branch. Version old-branch of project/manager/workers/base.py left in tree.
I'm wondering if there's some way I can indicate to git that folder project/manager/workers/
is the same as factory/workers
.