3 ms·
what's the difference between physical history and the logical one? thanks in advance
by ysofunny 3y ago
what's the difference between physical history and the logical one?
thanks in advance
- PhilipRoman 3y agoThe simple explanation: Logical history - what you see when you do "git log --all". Physical history - doing "git log --all" every time a repository updates and then storing each output as an entry into another history log. Kind of a "history of histories" The complex explanation: a git repository at a particular time consists (mostly) of a graph of commits. This graph represents the logical history of code changes in the repository. The graph can be updated in an append-only fashion (using commit/merge/revert) or in a destructive way like with rebase and reset. The physical history is simply the history of the graph over time.
- ysofunny 3y agoin other words the history of the graph is the physical history and the logical history is the filesets which are the nodes in the graph which is the branching sequence of commits the issue is that the 'logical history' is the reason git was built and the 'physical history', seems to me, is only feasible because we have the regular git sequence of commits