Gentoo Archives: gentoo-dev

From: "Domen Kožar" <domen@×××.si>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] showing file diffs as root
Date: Sun, 30 May 2010 15:34:44
Message-Id: 1275233670.5272.34.camel@oblak.fubar.si
In Reply to: Re: [gentoo-dev] showing file diffs as root by Christopher Harvey
1 difflib is one of the best Python libraries out there. It does it's job
2 perfectly.
3
4 difflib can generate diff in text, any it's very pluggable (go through
5 documentation, you will see)
6
7 On Sun, 2010-05-30 at 11:27 -0400, Christopher Harvey wrote:
8 > -----BEGIN PGP SIGNED MESSAGE-----
9 > Hash: SHA1
10 >
11 > On 05/30/10 11:21, Domen Kožar wrote:
12 > > Hey!
13 > >
14 > > Maybe I am missing something, but why not use difflib and pygments on
15 > > top of that?
16 > >
17 > > Cheers, Domen
18 > >
19 >
20 > That's a good option.
21 > Pros:
22 > Can easily integrate the diff viewer into my application.
23 >
24 > Cons:
25 > Doesn't seem to be a way to interactively merge files (not a big deal
26 > for me)
27 >
28 > As for generating the diff is it ok to use difflib to generate the diff
29 > text? I hear there is a diff environment variable..(but I can't seem to
30 > find it now) should I use that instead?
31 >
32 > - --
33 > My GnuPGP key at:
34 > www.basementcode.com/public_key.txt
35 > -----BEGIN PGP SIGNATURE-----
36 > Version: GnuPG v2.0.14 (GNU/Linux)
37 > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
38 >
39 > iQEcBAEBAgAGBQJMAoPtAAoJEDqfZIFeqFH7+NYH/3J6IS4woiS5KI3KIDdPA5eU
40 > 9VBaC8xRJEJ/fwYXoxaRqkWft2hAd/FahbPMzZI9RiA3tEu8Cv8NE6nvtXTJoe6U
41 > zJ/8gIszJVEG3QnADvzdSr03kCWCsom5iZBuEYP0eK/VT9cgsjiTsc71p0h7zcIK
42 > TosCrKMkya3IJ3svBXLnJhgtcekfmP2Qk8gQt4o/UMW1D7abP5kI2zxidgsGEL1V
43 > YBu4HOirte9RFzEIZBClFW0LpUZ0Ix2Rpf614GvAEW+5HK34hfQHMxdmPCVVLv7W
44 > KNMspLUOaOEVnufhz8i5UvKvbMCjj5PItTvEQlsJ/xzrB2bZqIWK1iYZp07PdmI=
45 > =CWy/
46 > -----END PGP SIGNATURE-----
47 >

Attachments

File name MIME type
signature.asc application/pgp-signature