usually when normal git diff shows if diff missing newline @ end this
diff --git a/a b/a index 08104ef..a3ba658 100644 --- a/a +++ b/a @@ -1 +1 @@ -this \ no newline @ end of file +this a2 if word-diff porcelain output using git diff --word-diff=porcelain --word-diff-regex=. --no-color information gets lost
diff --git a/a b/a index 08104ef..a3ba658 100644 --- a/a +++ b/a @@ -1 +1 @@ +2 ~ is there way include info in porcelain diff output?
normally no, since git diff --word-diff focused on words differences.
newline apparently not considered word in use case.
Comments
Post a Comment