comparison diff-colorize.py @ 22:948c96784f00 1.0

Added line to usage message identifying this as diff-colorize 1.0.
author Peter Hosey <hg@boredzo.org>
date Wed, 05 Jan 2011 21:04:42 -0800
parents 54a209909531
children d2bb1603f081
comparison
equal deleted inserted replaced
17:54a209909531 22:948c96784f00
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