openpolitics.com

  • writing
  • quotes
  • Topics
    • academia
    • corruption
    • economics
    • education
    • environment
    • finance
    • history
    • hypertext
    • media
    • philosophy
    • psychology
    • religion
    • russia
    • ted nelson
  • about
← Previous Next →

git diff – handling long lines?

<span class="pln">$ GIT_PAGER</span><span class="pun">=</span><span class="str">''</span><span class="pln"> git diff</span>

Eight years later I find a superior answer, from http://superuser.com/questions/777617/line-wrapping-less-in-os-x-specifically-for-use-with-git-diff:

git config core.pager `fold -w 80 | less`
source: $link[host]

Tags: git, git open-format-interview

Read Original Source

Tim Langeman © 2025 · Genesis Framework · WordPress · Log in