logoalt Hacker News

motorestlast Wednesday at 6:55 AM1 replyview on HN

> Git is using a proprietary variant on top of Unified Diffs.

What definition of "proprietary" are you using?


Replies

chipx86last Wednesday at 7:08 AM

Created by the Git team for Git's purposes, rather than something documented or proposed for wider adoption.

Other SCMs can and do use a Git-style diff format, but as there's no defined grammar, there are sometimes important differences. For example, Mercurial's Git-style diffs represent the revisions in a different format than Git's does with different meanings, reuse Git "index" lines for binary files but include SHAs of the file contents instead of any sort of revision, and have a header block that should be stripped out before sending to a Git-style diff parser.

show 1 reply