3 ms·
Nope - short answer - git internals store whole files even for the smallest change. The thinking is that "disk is cheap (compared to computing time)", and ther
by bfung 9y ago
Nope - short answer - git internals store whole files even for the smallest change. The thinking is that "disk is cheap (compared to computing time)", and there are different algorithms to present diffs / history that's useful having the original files around.
At first glance, that seems like a bad idea, but peeking into the '.git' folder, there are certain advantages of it over diff/patch storage formats and vice versa.
Longer answers: https://stackoverflow.com/questions/41482898/git-seems-to-store-the-whole-file-instead-of-diff-how-to-avoid-that https://stackoverflow.com/questions/41482898/git-seems-to-st...