I have a large file with complex history (many commits from many authors).
Refactoring it would suppose to split it in multiple small files, BUT, i need to keep history.
To fix the ideas, let's say I have a main
file containing all my code :
function a() {}
function b() {}
function c() {}
function main() {
a();
b();
c();
}
and I need to move the a
and the b
functions to a
and b
files respectively while keeping my main
function in the main
file -- WHILE keeping history in the three files.
I found some kind of solution there, but nothing that actually works or is practical in a production environment.
git log
andgit blame
attempt to conjure up a file history by reading the actual (commit) history; the extent to which they're successful lies somewhat in the eye of the beholder. – Polyhydric