Here are two text files to compare:
1.txt:
one three four five 2.txt:
one two three four Here are commands to create diff (for Windows):
git init copy 1.txt temp git add temp copy 2.txt temp git diff --minimal --word-diff del temp xrmdir /s /q ".git" Here is the output:
diff --git a/temp b/temp index 555f964..d993b66 100644 --- a/temp +++ b/temp @@ -1 +1 @@ one {+two+} three four[-five-] If we want to see original 1.txt by looking at diff, we'd see
one three fourfive (double space between one and three, no space between four and five).
Is there a way (command, I presume) to fix this, or is this normal? Am I missing something?
P.S.: git --version == 1.8.3.mysysgit.0