git filter-repo: but follow a file if it has moved like git log --follow

Viewed 153

In my use case, I have been using git filter-repo to select individual files to move to a new repo preserving history. I have a file that has moved once and am struggling to figure out how to get the history from when it was at a different location. git log --follow inc/help.py gives two histories.

If I run git filter-repo --path inc/help.py, I am only getting the second history the one when the file was moved. I am struggling to find a way to follow a file that has been moved. Something like git filter-repo --follow --path inc/help.py would be helpful if some combination of commands could get the desired results.

1 Answers
Related