Like a DebianGitRepository but can also perform rollbacks and knows
about some of the inner workings upstream vcs_tag, …
Method __init__ No summary
Method has_rollbacks Undocumented
Method rrr Remember ref for rollback
Method rrr_branch Undocumented
Method rrr_tag Undocumented
Method rrr_merge Undocumented
Method rollback Perform a complete rollback
Method create_tag Create a new tag.
Method commit_dir Replace the current tip of branch I{branch} with the contents from I{unpack_dir}
Method create_branch Create a new branch
Method merge Merge changes from the named commit into the current branch

Inherited from GitRepository (via DebianGitRepository, PkgGitRepository):

Class Method git_inout As _git_inout but can be used without an instance
Method path The absolute path to the repository
Method git_dir The absolute path to git's metadata
Method bare Whether this is a bare repository
Method tags List of all tags in the repository
Method branch The currently checked out branch
Method head SHA1 of the current HEAD
Method rename_branch Rename branch
Method delete_branch Delete branch I{branch}
Method get_branch On what branch is the current working copy
Method has_branch Check if the repository has branch named I{branch}.
Method set_branch Switch to branch I{branch}
Method get_merge_branch Get the branch we'd merge from
Method get_merge_base Get the common ancestor between two commits
Method abort_merge Abort a merge
Method is_in_merge Undocumented
Method is_fast_forward Check if an update I{from from_branch} to I{to_branch} would be a fast forward or if the branch is up to date already.
Method get_local_branches Get a list of local branches
Method get_remote_branches Get a list of remote branches
Method update_ref Update ref I{ref} to commit I{new} if I{ref} currently points to I{old}
Method branch_contains Check if branch I{branch} contains commit I{commit}
Method set_upstream_branch Set upstream branches for local branch
Method get_upstream_branch Get upstream branch for the local branch
Method delete_tag Delete a tag named I{tag}
Method move_tag Undocumented
Method has_tag Check if the repository has a tag named I{tag}.
Method describe Describe commit, relative to the latest tag reachable from it.
Method find_tag Find the closest tag to a given commit
Method find_branch_tag Find the closest tag on a certain branch to a given commit
Method get_tags List tags
Method verify_tag Verify a signed tag
Method force_head Force HEAD to a specific commit
Method is_clean Does the repository contain any uncommitted modifications?
Method clean Remove untracked files from the working tree.
Method status Check status of repository.
Method is_empty Is the repository empty?
Method rev_parse Find the SHA1 of a given name
Static Method strip_sha1 Strip a given sha1 and check if the resulting hash has the expected length.
Method checkout Checkout treeish
Method has_treeish Check if the repository has the treeish object I{treeish}.
Method write_tree Create a tree object from the current index
Method make_tree Create a tree based on contents.
Method get_obj_type Get type of a git repository object
Method list_tree Get a trees content. It returns a list of objects that match the 'ls-tree' output: [mode, type, sha1, path].
Method get_config Gets the config value associated with I{name}
Method set_config Set a git config value in this repository
Method set_user_name Sets the full name to use for git commits.
Method set_user_email Sets the email address to use for git commits.
Method get_author_info Determine a sane values for author name and author email from git's config and environment variables.
Method get_remotes Get a list of remote repositories
Method get_remote_repos Get all remote repositories
Method has_remote_repo Do we know about a remote named I{name}?
Method add_remote_repo Add a tracked remote repository
Method remove_remote_repo Undocumented
Method fetch Download objects and refs from another repository.
Method pull Fetch and merge from another repository
Method push Push changes to the remote repo
Method push_tag Push a tag to the remote repo
Method add_files Add files to a the repository
Method remove_files Remove files from the repository
Method list_files List files in index and working tree
Method write_file Hash a single file and write it into the object database
Method rename_file Rename file, directory, or symlink
Method commit_staged Commit currently staged files to the repository
Method commit_all No summary
Method commit_files Commit the given files to the repository
Method commit_tree Commit a tree with commit msg I{msg} and parents I{parents}
Method get_commits Get commits from since to until touching paths
Method show Show a git object
Method grep_log Get commmits matching I{regex}
Method get_subject Gets the subject of a commit.
Method get_commit_info Look up data of a specific commit-ish. Dereferences given commit-ish to the commit it points to.
Method format_patches Output the commits between start and end as patches in output_dir.
Method apply_patch Apply a patch using git apply
Method diff Diff two git repository objects
Method diff_status Get file-status of two git repository objects
Method archive Create an archive from a treeish
Method collect_garbage Cleanup unnecessary files and optimize the local repository
Method has_submodules Does the repo have any submodules?
Method add_submodule Add a submodule
Method update_submodules Update all submodules
Method get_submodules List the submodules of treeish
Class Method create Create a repository at path
Class Method clone Clone a git repository at I{remote} to I{path}.
Method _check_bare Check whether this is a bare repository
Method _get_git_dir Undocumented
Method _check_repo Undocumented
Static Method __build_env Prepare environment for subprocess calls
Method _git_getoutput Run a git command and return the output
Method _git_inout Run a git command with input and return output
Method _git_command Execute git command with arguments args and environment env at path.
Method _cmd_has_feature Check if the git command has certain feature enabled.
Method _get_branches Get a list of branches
Method _status Undocumented
Method _commit Undocumented

Inherited from GitRepository (via DebianGitRepository, PkgGitRepository):

Class Method git_inout As _git_inout but can be used without an instance
Method path The absolute path to the repository
Method git_dir The absolute path to git's metadata
Method bare Whether this is a bare repository
Method tags List of all tags in the repository
Method branch The currently checked out branch
Method head SHA1 of the current HEAD
Method rename_branch Rename branch
Method delete_branch Delete branch I{branch}
Method get_branch On what branch is the current working copy
Method has_branch Check if the repository has branch named I{branch}.
Method set_branch Switch to branch I{branch}
Method get_merge_branch Get the branch we'd merge from
Method get_merge_base Get the common ancestor between two commits
Method abort_merge Abort a merge
Method is_in_merge Undocumented
Method is_fast_forward Check if an update I{from from_branch} to I{to_branch} would be a fast forward or if the branch is up to date already.
Method get_local_branches Get a list of local branches
Method get_remote_branches Get a list of remote branches
Method update_ref Update ref I{ref} to commit I{new} if I{ref} currently points to I{old}
Method branch_contains Check if branch I{branch} contains commit I{commit}
Method set_upstream_branch Set upstream branches for local branch
Method get_upstream_branch Get upstream branch for the local branch
Method delete_tag Delete a tag named I{tag}
Method move_tag Undocumented
Method has_tag Check if the repository has a tag named I{tag}.
Method describe Describe commit, relative to the latest tag reachable from it.
Method find_tag Find the closest tag to a given commit
Method find_branch_tag Find the closest tag on a certain branch to a given commit
Method get_tags List tags
Method verify_tag Verify a signed tag
Method force_head Force HEAD to a specific commit
Method is_clean Does the repository contain any uncommitted modifications?
Method clean Remove untracked files from the working tree.
Method status Check status of repository.
Method is_empty Is the repository empty?
Method rev_parse Find the SHA1 of a given name
Static Method strip_sha1 Strip a given sha1 and check if the resulting hash has the expected length.
Method checkout Checkout treeish
Method has_treeish Check if the repository has the treeish object I{treeish}.
Method write_tree Create a tree object from the current index
Method make_tree Create a tree based on contents.
Method get_obj_type Get type of a git repository object
Method list_tree Get a trees content. It returns a list of objects that match the 'ls-tree' output: [mode, type, sha1, path].
Method get_config Gets the config value associated with I{name}
Method set_config Set a git config value in this repository
Method set_user_name Sets the full name to use for git commits.
Method set_user_email Sets the email address to use for git commits.
Method get_author_info Determine a sane values for author name and author email from git's config and environment variables.
Method get_remotes Get a list of remote repositories
Method get_remote_repos Get all remote repositories
Method has_remote_repo Do we know about a remote named I{name}?
Method add_remote_repo Add a tracked remote repository
Method remove_remote_repo Undocumented
Method fetch Download objects and refs from another repository.
Method pull Fetch and merge from another repository
Method push Push changes to the remote repo
Method push_tag Push a tag to the remote repo
Method add_files Add files to a the repository
Method remove_files Remove files from the repository
Method list_files List files in index and working tree
Method write_file Hash a single file and write it into the object database
Method rename_file Rename file, directory, or symlink
Method commit_staged Commit currently staged files to the repository
Method commit_all No summary
Method commit_files Commit the given files to the repository
Method commit_tree Commit a tree with commit msg I{msg} and parents I{parents}
Method get_commits Get commits from since to until touching paths
Method show Show a git object
Method grep_log Get commmits matching I{regex}
Method get_subject Gets the subject of a commit.
Method get_commit_info Look up data of a specific commit-ish. Dereferences given commit-ish to the commit it points to.
Method format_patches Output the commits between start and end as patches in output_dir.
Method apply_patch Apply a patch using git apply
Method diff Diff two git repository objects
Method diff_status Get file-status of two git repository objects
Method archive Create an archive from a treeish
Method collect_garbage Cleanup unnecessary files and optimize the local repository
Method has_submodules Does the repo have any submodules?
Method add_submodule Add a submodule
Method update_submodules Update all submodules
Method get_submodules List the submodules of treeish
Class Method create Create a repository at path
Class Method clone Clone a git repository at I{remote} to I{path}.
Method _check_bare Check whether this is a bare repository
Method _get_git_dir Undocumented
Method _check_repo Undocumented
Static Method __build_env Prepare environment for subprocess calls
Method _git_getoutput Run a git command and return the output
Method _git_inout Run a git command with input and return output
Method _git_command Execute git command with arguments args and environment env at path.
Method _cmd_has_feature Check if the git command has certain feature enabled.
Method _get_branches Get a list of branches
Method _status Undocumented
Method _commit Undocumented

Inherited from GitRepository (via DebianGitRepository, PkgGitRepository):

Class Method git_inout As _git_inout but can be used without an instance
Method path The absolute path to the repository
Method git_dir The absolute path to git's metadata
Method bare Whether this is a bare repository
Method tags List of all tags in the repository
Method branch The currently checked out branch
Method head SHA1 of the current HEAD
Method rename_branch Rename branch
Method delete_branch Delete branch I{branch}
Method get_branch On what branch is the current working copy
Method has_branch Check if the repository has branch named I{branch}.
Method set_branch Switch to branch I{branch}
Method get_merge_branch Get the branch we'd merge from
Method get_merge_base Get the common ancestor between two commits
Method abort_merge Abort a merge
Method is_in_merge Undocumented
Method is_fast_forward Check if an update I{from from_branch} to I{to_branch} would be a fast forward or if the branch is up to date already.
Method get_local_branches Get a list of local branches
Method get_remote_branches Get a list of remote branches
Method update_ref Update ref I{ref} to commit I{new} if I{ref} currently points to I{old}
Method branch_contains Check if branch I{branch} contains commit I{commit}
Method set_upstream_branch Set upstream branches for local branch
Method get_upstream_branch Get upstream branch for the local branch
Method delete_tag Delete a tag named I{tag}
Method move_tag Undocumented
Method has_tag Check if the repository has a tag named I{tag}.
Method describe Describe commit, relative to the latest tag reachable from it.
Method find_tag Find the closest tag to a given commit
Method find_branch_tag Find the closest tag on a certain branch to a given commit
Method get_tags List tags
Method verify_tag Verify a signed tag
Method force_head Force HEAD to a specific commit
Method is_clean Does the repository contain any uncommitted modifications?
Method clean Remove untracked files from the working tree.
Method status Check status of repository.
Method is_empty Is the repository empty?
Method rev_parse Find the SHA1 of a given name
Static Method strip_sha1 Strip a given sha1 and check if the resulting hash has the expected length.
Method checkout Checkout treeish
Method has_treeish Check if the repository has the treeish object I{treeish}.
Method write_tree Create a tree object from the current index
Method make_tree Create a tree based on contents.
Method get_obj_type Get type of a git repository object
Method list_tree Get a trees content. It returns a list of objects that match the 'ls-tree' output: [mode, type, sha1, path].
Method get_config Gets the config value associated with I{name}
Method set_config Set a git config value in this repository
Method set_user_name Sets the full name to use for git commits.
Method set_user_email Sets the email address to use for git commits.
Method get_author_info Determine a sane values for author name and author email from git's config and environment variables.
Method get_remotes Get a list of remote repositories
Method get_remote_repos Get all remote repositories
Method has_remote_repo Do we know about a remote named I{name}?
Method add_remote_repo Add a tracked remote repository
Method remove_remote_repo Undocumented
Method fetch Download objects and refs from another repository.
Method pull Fetch and merge from another repository
Method push Push changes to the remote repo
Method push_tag Push a tag to the remote repo
Method add_files Add files to a the repository
Method remove_files Remove files from the repository
Method list_files List files in index and working tree
Method write_file Hash a single file and write it into the object database
Method rename_file Rename file, directory, or symlink
Method commit_staged Commit currently staged files to the repository
Method commit_all No summary
Method commit_files Commit the given files to the repository
Method commit_tree Commit a tree with commit msg I{msg} and parents I{parents}
Method get_commits Get commits from since to until touching paths
Method show Show a git object
Method grep_log Get commmits matching I{regex}
Method get_subject Gets the subject of a commit.
Method get_commit_info Look up data of a specific commit-ish. Dereferences given commit-ish to the commit it points to.
Method format_patches Output the commits between start and end as patches in output_dir.
Method apply_patch Apply a patch using git apply
Method diff Diff two git repository objects
Method diff_status Get file-status of two git repository objects
Method archive Create an archive from a treeish
Method collect_garbage Cleanup unnecessary files and optimize the local repository
Method has_submodules Does the repo have any submodules?
Method add_submodule Add a submodule
Method update_submodules Update all submodules
Method get_submodules List the submodules of treeish
Class Method create Create a repository at path
Class Method clone Clone a git repository at I{remote} to I{path}.
Method _check_bare Check whether this is a bare repository
Method _get_git_dir Undocumented
Method _check_repo Undocumented
Static Method __build_env Prepare environment for subprocess calls
Method _git_getoutput Run a git command and return the output
Method _git_inout Run a git command with input and return output
Method _git_command Execute git command with arguments args and environment env at path.
Method _cmd_has_feature Check if the git command has certain feature enabled.
Method _get_branches Get a list of branches
Method _status Undocumented
Method _commit Undocumented
def __init__(self, *args, **kwargs):
@param path: path to git repo (or subdir)
@type path: C{str}
@param toplevel: whether path points to the toplevel dir of
    git repository
@type toplevel: C{bool}
def has_rollbacks(self):
Undocumented
def rrr(self, refname, action, reftype):
Remember ref for rollback

@param refname: ref to roll back
@param action: the rollback action (delete, reset, ...)
@param reftype: the reference type (tag, branch, ...)
def rrr_branch(self, branchname, action='reset-or-delete'):
Undocumented
def rrr_tag(self, tagname, action='delete'):
Undocumented
def rrr_merge(self, commit, action='abortmerge'):
Undocumented
def rollback(self):
Perform a complete rollback

Try to roll back as much as possible and remember what failed.
def create_tag(self, *args, **kwargs):
Create a new tag.

@param name: the tag's name
@type name: C{str}
@param msg: The tag message.
@type msg: C{str}
@param commit: the commit or object to create the tag at, default
    is I{HEAD}
@type commit: C{str}
@param sign: Whether to sing the tag
@type sign: C{bool}
@param keyid: the GPG keyid used to sign the tag
@type keyid: C{str}
def commit_dir(self, *args, **kwargs):
Replace the current tip of branch I{branch} with the contents from I{unpack_dir}

@param unpack_dir: content to add
@type unpack_dir: C{str}
@param msg: commit message to use
@type msg: C{str}
@param branch: branch to add the contents of unpack_dir to
@type branch: C{str}
@param other_parents: additional parents of this commit
@type other_parents: C{list} of C{str}
@param author: author information to use for commit
@type author: C{dict} with keys I{name}, I{email}, I{date}
@param committer: committer information to use for commit
@type committer: C{dict} with keys I{name}, I{email}, I{date}
    or L{GitModifier}
@param create_missing_branch: create I{branch} as detached branch if it
    doesn't already exist.
@type create_missing_branch: C{bool}
def create_branch(self, *args, **kwargs):
Create a new branch

@param branch: the branch's name
@param rev: where to start the branch from
@param force: reset branch HEAD to start point, if it already exists

If rev is None the branch starts from the current HEAD.
def merge(self, *args, **kwargs):
Merge changes from the named commit into the current branch

@param commit: the commit to merge from (usually a branch name or tag)
@type commit: C{str}
@param verbose: whether to print a summary after the merge
@type verbose: C{bool}
@param edit: whether to invoke an editor to edit the merge message
@type edit: C{bool}
API Documentation for git-buildpackage, generated by pydoctor at 2019-10-31 18:15:14.