Re: Git diff misattributes the first word of a line to the previous line
On 10/13/22 12:51, Gurjeet Singh wrote:
Show 10 quoted lines
> # **** 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