Currently, there are hardcoded constants that define the amount of contextual information in a diff (3 lines above and below the change). It would be useful to have control over these variables.
Let me know if you would be willing to merge such a change, I am happy to open a PR.