What's the diff algorithm used by Github?

Viewed 817

Git supports 4 diff algorithms Myers, Minimal, Patience, and Histogram. And Myers is used as the default algorithm.

What is the diffing algorithm used by Github in Pull requests and supported by Commits API?

1 Answers

GitHub uses the default algorithm, myers. It can optionally be modified to ignore whitespace, but is not otherwise configurable.

This isn't a guarantee of compatibility; it's just what's used at this moment.

Related