Re: [BUG] `git diff` treats an unchanged line as modified

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 25 Dec 2019 at 03:34, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> IOW, there is no *single* diff output that is correct.
>
> Among many "correct" diff output, there are ones that readers find
> them easier to understand and those that look suboptimal.  The
> differences are often personal tastes.

Thanks, this explanation is clear for me.

> "git diff" has options to tweak heuristics it uses to choose among
> many "correct" diff outputs, like --patience, --histogram, etc.
> Perhaps using one of them would produce one that match your taste
> better?
>

After understanding the correctness of diff algorithm, the default
algorithm also suits my needs now, although the patience algorithm is
more understandable in some special circumstances.

Regards,
Hao Lee



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux