Git porcelain word diff with no newline at end of file -


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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -