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

Re: Bug#925288: ITP: diff-so-fancy -- Good-lookin' diffs. Actually… nah… The best-lookin' diffs.



On Fri, Mar 22, 2019 at 05:06:10PM +0200, Peter Pentchev wrote:
> On Fri, Mar 22, 2019 at 03:34:37PM +0100, Adam Borowski wrote:
> [snip]
> > Highlighting changes inside the line is a massive improvement.
> > 
> > There's an implementation of this in "git" itself already, named
> > diff-highlight.  Alas, either I'm a complete idiot, or its documentation is
> > not quite adequate -- some time ago I wasted over an hour trying to get that
> > implementation to work, without success.
> 
> [roam@straylight ~]$ cat ~/bin/hdiff
> #!/bin/sh
> 
> : "${DIFF_HIGHLIGHT:=/usr/share/doc/git/contrib/diff-highlight}"
> 
> exec perl -I "$DIFF_HIGHLIGHT" -MDiffHighlight -- "$DIFF_HIGHLIGHT/diff-highlight.perl" | exec less -r

Either this, or abuse your local sudo to run `make`, or convince the git
maintainer to apply the patch at https://bugs.debian.org/868871


(btw, I recommend less -R instead of -r)

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: