|
@@ -3,8 +3,8 @@
|
3
|
3
|
|
4
|
4
|
"""
|
5
|
5
|
Term based tool to view **colored**, **incremental** diff in Git/Mercurial/Svn
|
6
|
|
-workspace, given patch or two files, or from stdin, with **side by side** and
|
7
|
|
-**auto pager** support. Requires python (>= 2.5.0) and ``less``.
|
|
6
|
+workspace or from stdin, with **side by side** and **auto pager** support.
|
|
7
|
+Requires python (>= 2.5.0) and ``less``.
|
8
|
8
|
"""
|
9
|
9
|
|
10
|
10
|
META_INFO = {
|
|
@@ -14,9 +14,8 @@ META_INFO = {
|
14
|
14
|
'email' : 'mattwyl(@)gmail(.)com',
|
15
|
15
|
'url' : 'https://github.com/ymattw/cdiff',
|
16
|
16
|
'keywords' : 'colored incremental side-by-side diff',
|
17
|
|
- 'description' : ('View colored, incremental diff in workspace, given patch '
|
18
|
|
- 'or two files, or from stdin, with side by side and auto '
|
19
|
|
- 'pager support')
|
|
17
|
+ 'description' : ('View colored, incremental diff in workspace or from '
|
|
18
|
+ 'stdin, with side by side and auto pager support')
|
20
|
19
|
}
|
21
|
20
|
|
22
|
21
|
import sys
|
|
@@ -639,18 +638,16 @@ def main():
|
639
|
638
|
|
640
|
639
|
supported_vcs = sorted(VCS_INFO.keys())
|
641
|
640
|
|
642
|
|
- usage = """
|
643
|
|
- %prog [options]
|
644
|
|
- %prog [options] [file ...]"""
|
|
641
|
+ usage = """%prog [options] [file|dir ...]"""
|
645
|
642
|
parser = optparse.OptionParser(usage=usage,
|
646
|
643
|
description=META_INFO['description'],
|
647
|
644
|
version='%%prog %s' % META_INFO['version'])
|
648
|
645
|
parser.add_option('-s', '--side-by-side', action='store_true',
|
649
|
|
- help='show in side-by-side mode')
|
|
646
|
+ help='enable side-by-side mode')
|
650
|
647
|
parser.add_option('-w', '--width', type='int', default=80, metavar='N',
|
651
|
648
|
help='set text width (side-by-side mode only), default is 80')
|
652
|
649
|
parser.add_option('-l', '--log', action='store_true',
|
653
|
|
- help='show diff log from revision control')
|
|
650
|
+ help='show log with changes from revision control')
|
654
|
651
|
parser.add_option('-c', '--color', default='auto', metavar='X',
|
655
|
652
|
help='colorize mode "auto" (default), "always", or "never"')
|
656
|
653
|
opts, args = parser.parse_args()
|