RE: Tip for reading GitHub pull requests



From: Andrew Kirkpatrick [mailto:akirkpat@adobe.com]
Sent: Monday, April 25, 2016 11:33 AM


If you are looking at a GitHub pull request it is good to know that there are two views - “unified” and “split”.  For me these could be re-labled “hard to read” and “easier to read”.  I try to remember to add the “?diff=split” to the URIs when sending them around, but GitHub remembers my preference so doesn’t bother with the URL parameter when I click on a pull request while showing me the code the way that I wanted to view it last.

It’s also worth noting that Git has a “word diff” mode, which is often better for comparing text in a document, as it shows the differences word by word rather than line by line. Insertions are presented {+like this+} and deletions {-like this-}; colour can also be used.

To the best of my knowledge, the GitHub Web interface doesn’t support this mode, but Git itself does. You can also configure it to some extent to take account of the syntax of your markup language. I used this feature extensively while in the final stages of revising my PhD for submission, a process of responding to comments from thesis examiners.


________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________

Received on Monday, 25 April 2016 15:43:29 UTC