Re: Bug report: "Use of uninitialized value $_ in print"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 2, 2018, 21:53 UTC
- Message-ID
- <xmqqd10mb0v7.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAD-Jur+nRsDnV2YrUwC9pt2aLCYHpEunXFKb22KdZ0sKF-Ga+A@mail.gmail.com>
Sam Kuper <sam.kuper@uclmail.net> writes:
Show 5 quoted lines
> 1. It would yield, IIUC, less flexibility to create new kinds of view > based on a consistent, standardised underlying model. > > 2. It is harder to read, for some types of input (e.g. prose) than the > view generated by the existing word-diff algorithm.
The loss of line-end by the lossy "word-diff" output does not matter if you never split hunks, but to be able to split a hunk at an in-between context line (which you can already do) and new features like per-line selection that are emerging, keeping 1:1 line correspondence between what is shown and what is applied is a must.
Unless you are volunteering to design (notice that I am not saying "implement") both diff generation/coloration side _and_ patch application side, that is. In which case, you may be able to come up with a magic ;-)