Create a remote Git repository based on the current one
Function print_config Print out the git config to push to the newly created repo.
Function parse_url Sanity check our remote URL
Function build_remote_script Create the script that will be run on the remote side
Function build_cmd Build the command we pass the script to
Function read_yn Undocumented
Function setup_branch_tracking Undocumented
Function push_branches Undocumented
Function usage_msg Undocumented
Function build_parser Undocumented
Function parse_args Parse the command line arguments and config files.
Function do_create Undocumented
Function get_config_names Undocumented
Function do_list Undocumented
Function main Undocumented
def print_config(remote, branches):
Print out the git config to push to the newly created repo.

>>> print_config({'name': 'name', 'url': 'url'}, ['foo', 'bar'])
[remote "name"]
        url = url
        fetch = +refs/heads/*:refs/remotes/name/*
        push = foo
        push = bar
[branch "foo"]
        remote = name
        merge = refs/heads/foo
[branch "bar"]
        remote = name
        merge = refs/heads/bar
def parse_url(remote_url, name, pkg, template_dir=None, bare=True):
Sanity check our remote URL
def build_remote_script(remote, branch):
Create the script that will be run on the remote side
def build_cmd(remote):
Build the command we pass the script to

>>> build_cmd({'scheme': ''})
['sh']
>>> build_cmd({'scheme': 'ssh', 'host': 'host', 'port': 80})
['ssh', '-p', 80, 'host', 'sh']
def read_yn():
Undocumented
def setup_branch_tracking(repo, remote, branches):
Undocumented
def push_branches(remote, branches):
Undocumented
def usage_msg():
Undocumented
def build_parser(name, sections=[]):
Undocumented
def parse_args(argv):
Parse the command line arguments and config files.

@param argv: the command line arguments
@type argv: C{list} of C{str}
def do_create(options):
Undocumented
def get_config_names(sections):
Undocumented
def do_list(sections):
Undocumented
def main(argv):
Undocumented
API Documentation for git-buildpackage, generated by pydoctor at 2019-09-07 17:58:51.