logoalt Hacker News

mitxelatoday at 12:05 AM1 replyview on HN

The main reason to have those links is for people to click on them. No sensibly programmed machine is scraping diffs from a git web front end.


Replies

cyphartoday at 1:57 AM

Not to mention it is the least efficient representation of git commits. It seems a lot of people are unaware that git generates the diff representation you see with "git show" on the fly -- internally, commits are Merkle trees representing a snapshot of the repo file contents.

As you said, if you actually want to interact with a remote git repo you'd do so with packfiles not diffs.