通常当你做一个正常的git diff
时,它会告诉你diff是否在这样的结尾处缺少一个换行符
diff --git a/A b/A
index 08104ef..a3ba658 100644
--- a/A
+++ b/A
@@ -1 +1 @@
-this is A
\ No newline at end of file
+this is A2
如果使用git diff --word-diff=porcelain --word-diff-regex=. --no-color
进行word-diff瓷器输出,则此信息会丢失
diff --git a/A b/A
index 08104ef..a3ba658 100644
--- a/A
+++ b/A
@@ -1 +1 @@
this is A
+2
~
有没有办法在瓷器diff
输出中包含此信息?