3 ms·
Git doesn't store deltas, it stores the whole object for each version of the file.
by jimktrains2 8y ago
Git doesn't store deltas, it stores the whole object for each version of the file.
- wolfgang42 8y agoIn theory, Git doesn't store deltas. In practice, it uses packfiles which store some objects as diffs against other objects. (As I understand it, though, it doesn't do this strictly by time, it has some heuristics to find the most similar other object which may pick completely unrelated objects if they're similar enough.)
- jimktrains2 8y agoMy understanding is that that's an optimization for space and only used for much older commits. Pack files aren't needed in or present in every repository. They're more an archive than part of everyday usage is my understanding.