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

Function parser

gitless/cli/gl_publish.py:13–20  ·  view source on GitHub ↗

Adds the publish parser to the given subparsers object.

(subparsers, _)

Source from the content-addressed store, hash-verified

11
12
13def parser(subparsers, _):
14 """Adds the publish parser to the given subparsers object."""
15 desc = 'publish commits upstream'
16 publish_parser = subparsers.add_parser(
17 'publish', help=desc, description=desc.capitalize())
18 publish_parser.add_argument(
19 'dst', nargs='?', help='the branch where to publish commits')
20 publish_parser.set_defaults(func=main)
21
22
23def main(args, repo):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected