Re: Bug report: "Use of uninitialized value $_ in print"
- From
Jeff King <peff@peff.net>
- Date
- Mar 3, 2018, 06:02 UTC
- Message-ID
- <20180303060215.GI27689@sigill.intra.peff.net>
- In-Reply-To
- <CAD-JurJLDSzf7_A0ZGWPYGyRiSnHWSpUrVEd9_+N1J7BamMM=Q@mail.gmail.com>
On Fri, Mar 02, 2018 at 05:30:28PM +0000, Sam Kuper wrote:
Show 9 quoted lines
> On 02/03/2018, Jeff King <peff@peff.net> wrote: > > Unfortunately, I don't think there's an easy way to do what you want > > (show word-diffs but apply the full diff). > > Oh :( > > That would be a *very* useful feature to have, especially where > multiple small (e.g. single character or single word) changes are > sprinkled throughout a large file.
You might want to try diff-highlight from Git's contrib/ directory. It was the reason I added interactive.diffFilter in the first place. E.g.:
cd contrib/diff-highlight make cp diff-highlight /to/your/$PATH git config --global interactive.diffFilter diff-highlight
It's not quite the same as a word-diff, because it doesn't find matches across word boundaries. So if you re-wrap a paragraph, for example, it won't be much help. But I do find it useful (and also as a general filter for log and diff output).
> Should I start a separate thread for this as a feature request?
I think this thread can serve.
-Peff