Search code examples
gitword-diff

Can you get a word-diff with `git log`?


I know that git diff --word-diff=color shows a word diff between the working tree and HEAD, but is there a way to get the same kind of output with git log?


Solution

  • What about --color-words? Additionally you somehow have to activate the diff.

    git log --color-words -p
    

    shows me kind of a colored diff.