Mercurial > diff-colorize
comparison diff-colorize.py @ 24:d2bb1603f081
Merged in the new 1.0 version-message changeset.
author | Peter Hosey <hg@boredzo.org> |
---|---|
date | Wed, 05 Jan 2011 21:05:17 -0800 |
parents | 929a488c4960 948c96784f00 |
children | 94e9ee861fc3 |
comparison
equal
deleted
inserted
replaced
21:929a488c4960 | 24:d2bb1603f081 |
---|---|
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 | |
31 | |
30 Usage: diff ... | diff-colorize | 32 Usage: diff ... | diff-colorize |
31 or: diff-colorize < foo.diff | 33 or: diff-colorize < foo.diff |
32 | 34 |
33 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. |
34 | 36 |