MCPcopy Create free account
hub / github.com/gitless-vcs/gitless / parser

Function parser

gitless/cli/gl_diff.py:16–25  ·  view source on GitHub ↗

Adds the diff parser to the given subparsers object.

(subparsers, repo)

Source from the content-addressed store, hash-verified

14
15
16def 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
28def main(args, repo):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected