Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to wrap long lines in the GitHub diff viewer?

Tags:

github

Is it possible to wrap long lines in the GitHub diff viewer?

Maybe a query string param?

like image 702
vaughan Avatar asked May 10 '13 04:05

vaughan


1 Answers

Note that from December 3rd, 2013, GitHub now proposes "Soft-wrapping on prose diffs":
(Meaning you might not have to put anything special in the url or as a query to benefit from that feature)

Before:

https://f.cloud.github.com/assets/173/1657839/1764c242-5b8a-11e3-82b7-f3409cc20f89.png

After:

https://f.cloud.github.com/assets/173/1657812/d3fab2be-5b89-11e3-83b5-ececcbe52158.png

See as an example a diff on a patch I did, where you can see the line soft-wrapped.

like image 175
VonC Avatar answered Oct 10 '22 08:10

VonC