[PLUGIN] Lessdiff -> colourised diffs via less
Michael Ellerman
michael at ellerman.id.au
Fri Dec 9 22:51:28 GMT 2005
On Fri, 9 Dec 2005 16:19, Wouter van Heyst wrote:
> On Fri, Dec 09, 2005 at 04:00:59PM -0600, Michael Ellerman wrote:
> > Hiya,
> >
> > I've gone mental with this bzr command + less thing.
> >
> > I've just implemented lessdiff, it runs diff via less, which is not that
> > exciting. BUT, if you have colordiff installed you'll get coloured diffs
> > - super cool.
>
> And a small hack on that to run it through 'vim -c "set syntax=diff" -'
> instead of PAGER. Next, trying to figure out why vim doesn't recognise
> bzr diff output currently.
Could it be the colour cruft that colourdiff adds? Less barfs on that gear
unless you specifiy -R.
Let me know if you get it working, we could come up with something less hacky,
and environment variable or something to choose vim.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051209/e98d88e6/attachment.pgp
More information about the bazaar
mailing list