3 ms·
When we ask git to show us a commit, it shows us a diff, because that’s the most helpful model.
by MrDarcy 3y ago
When we ask git to show us a commit, it shows us a diff, because that’s the most helpful model.
- yencabulator 3y agoIf we want to ask git to show us a commit, we need to type git cat-file commit HEAD `git show` does not "show a commit" as such, its man page is pretty clear about that: For commits it shows the log message and textual diff.
- MrDarcy 3y agoThat’s exactly the point. git show HEAD shows the log and textual diff because that’s what matters most from the users perspective. The internal representation doesn’t matter for most users and use cases.