Because git is designed for source code, its default diff algorithm treats a line as the minimum indivisible unit.
I am trying to edit some markdown files that are word wrapped at column 80. Adding a sentence can cause the rest of the paragraph to be marked as changed.
Is there a way to have Git use a diff algorithm more suited to text? I need one that treats words or sentences as indivisible units rather than lines?
You might try
git diff --word-diffinstead.