Mercurial > diff-colorize
comparison diff-colorize.py @ 25:94e9ee861fc3
This is diff-colorize 1.1.
author | Peter Hosey <hg@boredzo.org> |
---|---|
date | Wed, 05 Jan 2011 21:05:33 -0800 |
parents | d2bb1603f081 |
children | 3b33b1c48880 |
comparison
equal
deleted
inserted
replaced
24:d2bb1603f081 | 25:94e9ee861fc3 |
---|---|
25 COLOR_FORMAT = COLOR_FORMAT_256 if has_256_color else COLOR_FORMAT_16 | 25 COLOR_FORMAT = COLOR_FORMAT_256 if has_256_color else COLOR_FORMAT_16 |
26 BEGIN_REVERSE_FORMAT = '\033[7m' | 26 BEGIN_REVERSE_FORMAT = '\033[7m' |
27 END_REVERSE_FORMAT = '\033[27m' | 27 END_REVERSE_FORMAT = '\033[27m' |
28 | 28 |
29 USAGE = """ | 29 USAGE = """ |
30 diff-colorize 1.0 by Peter Hosey | 30 diff-colorize 1.1 by Peter Hosey |
31 | 31 |
32 Usage: diff ... | diff-colorize | 32 Usage: diff ... | diff-colorize |
33 or: diff-colorize < foo.diff | 33 or: diff-colorize < foo.diff |
34 | 34 |
35 Reads unified or git-style diff data from standard input, colorizes it, and writes the result to standard output. | 35 Reads unified or git-style diff data from standard input, colorizes it, and writes the result to standard output. |