|
|
|
|
|
by ilyt
976 days ago
|
|
Git doesn't store diffs on logical level. Git operates on snapshots of trees. Commit is not "a collection of changes", it's a snapshot of a tree with attached predecessor of it. Then the another layer (which can be git, but also can be any other tool, adding custom diff tool to git is very easy) uses that to generate diffs. There is zero stopping anyone from adding contextual diffs to Git. Just ask it for content of both commits and feed it to the algorithm. Yes, git underneath stores data as diffs but they are only vaguely related to logical structure of commits |
|
Linky: https://stackoverflow.com/questions/255202/how-do-i-view-git...