logoalt Hacker News

frohtoday at 5:03 AM1 replyview on HN

TIL, thx :-)

somewhat related Q:

how do you give two files the same ancestor? so git log will for each show the history to the beginnings of the originally unsplit file? useful for splitting large files.


Replies

bonzinitoday at 5:08 AM

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.