Мне бы очень хотелось иметь что-то вроде следующего:
$ git diff
diff --git a/file b/file
index a7d45cf..4155b93 100644
--- a/file
+++ b/file
@@ -1,2 +1,2 @@
-The quick brown fox jumps over the lazy dog.
-The quick brown fox jumps over the lazy dog.
+The quick brown fox jumped over the lazy dog.
+The quick red fox jumps over the hazy frog.
$ git diff --word-diff
diff --git a/file b/file
index a7d45cf..4155b93 100644
--- a/file
+++ b/file
@@ -1,2 +1,2 @@
The quick brown fox [-jumps-]{+jumped+} over the lazy dog.
The quick [-brown-]{+red+} fox jumps over the [-lazy dog.-]{+hazy frog.+}
$ git diff --word-diff --unimplemented-flag
diff --git a/file b/file
index a7d45cf..4155b93 100644
--- a/file
+++ b/file
@@ -1,2 +1,2 @@
The quick brown fox [-jumps-]{+jumped+} over the lazy dog.
-The quick brown fox jumps over the lazy dog.
+The quick red fox jumps over the hazy frog.
В этом случае основная идея состоит в том, чтобы иметь возможность установить порог, и если в строке появляется более N различий слов, строка представляется без различий слов, а вместо этого в виде полной строки. Некоторые подобные функции уже существуют?