colordiff nocolor patch

Mario Schwalbe schwalbe at inf.tu-dresden.de
Mon Dec 15 17:11:14 GMT 2008


Hi,

I'd like to propose a small patch for colordiff.
I like this tool, but right now colordiff still tries to colorize
output if redirected to a file. This patch (taken from colorgcc)
disables colorization in that case. In addition, it also adds a
configuration option nocolor to disable colorization for specific
terminal types.

thanks & ciao,
Mario

-- 
 Wo das Chaos auf die Ordnung trifft, gewinnt meist das Chaos,
 weil es besser organisiert ist.
     - Friedrich Nietzsche -

--
    _____    ________
   /     \  /   ____/  Mario Schwalbe
  /  \ /  \ \____  \
 /    Y    \/       \  eMail: schwalbe at inf.tu-dresden.de,
 \____|__  /______  /         ms790178 at inf.tu-dresden.de
         \/       \/

          key ID: 7DA9 DAFF
      public key: https://www1.inf.tu-dresden.de/~ms790178/key.asc
 key fingerprint: 2979 AA20 4A93 B527 90CC  45E5 4B28 511A 7DA9 DAFF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colordiff.patch
Type: text/x-patch
Size: 1258 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-motu/attachments/20081215/18cf10f2/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-motu/attachments/20081215/18cf10f2/attachment.pgp 


More information about the Ubuntu-motu mailing list