I’m running git-diff on a file, but the change is at the end of a long line.
If I use cursor keys to move right, it loses colour-coding—and worse the lines don’t line up—making it harder to track the change.
Is there a way to prevent that problem or to simply make the lines wrap instead?
I’m running Git 1.5.5 via mingw32.
The display of the output of
git diffis handled by whatever pager you are using.Commonly, under Linux,
lesswould be used.You can tell git to use a different pager by setting the
GIT_PAGERenvironment variable. If you don’t mind about paging (for example, your terminal allows you to scroll back) you might try explicitly settingGIT_PAGERto empty to stop it using a pager. Under Linux:Without a pager, the lines will wrap.
If your terminal doesn’t support coloured output, you can also turn this off using either the
--no-colorargument, or putting an entry in the color section of your git config file.