From: Bagas Sanjaya Date: Thu, 13 Oct 2022 12:16:05 GMT Subject: Re: Git diff misattributes the first word of a line to the previous line Message-ID: <1ebea198-fa2a-3f79-e698-64fa4799bcde@gmail.com> In-Reply-To: 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