I used to have a single repository:
my-project/
app/
common/
logger.js
foo/
bar/
index.js
The logger.js file located in my-project/app/common used to be located in my-project/app. It has been moved with git mv. The command git log -- app/common/logger.js only returns the history since it has been moved, all the history linked to its previous location has been lost. However this lost history can be accessed using git log --follow -- app/common/logger.js
I have split this repo into 4:
my-project-common: containsmy-project/app/commonmy-project-foo: containsmy-project/app/foomy-project-bar: containsmy-project/app/barmy-project: containsmy-project/app/index.js
I achieved this with git filter-branch and it worked.
Problem: When moving my-project/app/common into my-project-common/, the history of logger.js only contains the history linked to its previous location (ie: my-project/app/common). The history linked to the location my-project/app is not accessible, even with --follow.
Question: How to preserve the full history of logger.js?