Subject: Re: Git diff misattributes the first word of a line to the previous line

From: Bagas Sanjaya <[email-masked]>
Date: Thu, 13 Oct 2022 19:16:05 +0700

On 10/13/22 12:51, Gurjeet Singh wrote:
> # **** Expected **** output
> $ git diff --word-diff=plain /tmp/1.txt /tmp/2.txt
> diff --git a/tmp/1.txt b/tmp/2.txt
> index 8239f93..099fb80 100644
> --- a/tmp/1.txt
> +++ b/tmp/2.txt
> @@ -1,2 +1,2 @@
>     x = yz {+opt1+}
>     [-ab-]{+ac+} = [-cd ef-]{+pq opt2+}
> 

What Git version (and on what system) you made the expected diff above?

-- 
An old man doll... just what I always wanted! - Clara