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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With