Adds the diff parser to the given subparsers object.
(subparsers, repo)
| 14 | |
| 15 | |
| 16 | def parser(subparsers, repo): |
| 17 | """Adds the diff parser to the given subparsers object.""" |
| 18 | desc = 'show changes to files' |
| 19 | diff_parser = subparsers.add_parser( |
| 20 | 'diff', help=desc, description=( |
| 21 | desc.capitalize() + '. ' + |
| 22 | 'By default all tracked modified files are diffed. To customize the ' |
| 23 | ' set of files to diff use the only, exclude, and include flags')) |
| 24 | helpers.oei_flags(diff_parser, repo) |
| 25 | diff_parser.set_defaults(func=main) |
| 26 | |
| 27 | |
| 28 | def main(args, repo): |
nothing calls this directly
no outgoing calls
no test coverage detected