Hacker News new | ask | show | jobs
by bonzini 18 days ago
That's not possible, because files don't have ancestors in git. Each commit's tree is tracked independently and copy/move is just something that's detected via heuristics.
2 comments

I meanwhile understood that you can commit a copy of a file and then edit both, and then the ancestry tracking options to git log resolve the two split parts ancestry just fine.
But those heuristics could be better than they are now so that a git log <file> will show the shared history for both copies.