GitService
Section titled “GitService”class GitService()Sandbox git namespace.
GitService.__init__
Section titled “GitService.__init__”def __init__(impl: AsyncGitService, bridge: SyncBridge) -> NoneGitService.add
Section titled “GitService.add”def add(path: str, files: Sequence[str]) -> NoneStage files.
GitService.add_remote
Section titled “GitService.add_remote”def add_remote(path: str, name: str, url: str) -> NoneGitService.checkout_branch
Section titled “GitService.checkout_branch”def checkout_branch(path: str, branch: str) -> NoneCheckout a branch.
GitService.clone
Section titled “GitService.clone”def clone(url: str, path: str, *, branch: Optional[str] = None, commit_id: Optional[str] = None, depth: Optional[int] = None, insecure_skip_tls: bool = False, username: Optional[str] = None, password: Optional[str] = None, timeout: Optional[float] = None) -> NoneClone a repository, optionally shallow and with per-call TLS relaxation.
GitService.commit
Section titled “GitService.commit”def commit(path: str, message: str, *, author: str, email: str, allow_empty: bool = False) -> GitCommitResponseCommit staged changes, optionally allowing an empty commit.
GitService.create_branch
Section titled “GitService.create_branch”def create_branch(path: str, name: str) -> NoneCreate a branch.
GitService.delete_branch
Section titled “GitService.delete_branch”def delete_branch(path: str, name: str) -> NoneDelete a branch.
GitService.get_config
Section titled “GitService.get_config”def get_config(key: str, *, path: Optional[str] = None, scope: str = 'global') -> Optional[str]GitService.history
Section titled “GitService.history”def history(path: str) -> ListResultList commits, newest first.
GitService.init
Section titled “GitService.init”def init(path: str, *, bare: bool = False, initial_branch: Optional[str] = None) -> NoneGitService.list_branches
Section titled “GitService.list_branches”def list_branches(path: str) -> ListResultList branch names as {items, next_cursor}.
GitService.list_remotes
Section titled “GitService.list_remotes”def list_remotes(path: str) -> ListResult[JsonObject]GitService.pull
Section titled “GitService.pull”def pull(path: str, *, username: Optional[str] = None, password: Optional[str] = None, branch: Optional[str] = None, remote: Optional[str] = None, timeout: Optional[float] = None) -> NonePull from the configured or named remote.
GitService.push
Section titled “GitService.push”def push(path: str, *, username: Optional[str] = None, password: Optional[str] = None, branch: Optional[str] = None, remote: Optional[str] = None, set_upstream: bool = False, timeout: Optional[float] = None) -> NonePush to the configured or named remote.
GitService.reset
Section titled “GitService.reset”def reset(path: str, *, mode: Optional[str] = None, target: Optional[str] = None, files: Optional[Sequence[str]] = None) -> NoneGitService.restore
Section titled “GitService.restore”def restore(path: str, files: Sequence[str], *, staged: Optional[bool] = None, worktree: Optional[bool] = None, source: Optional[str] = None) -> NoneGitService.set_config
Section titled “GitService.set_config”def set_config(key: str, value: str, *, path: Optional[str] = None, scope: str = 'global') -> NoneGitService.status
Section titled “GitService.status”def status(path: str) -> GitStatusReturn git status.
AsyncGitService
Section titled “AsyncGitService”class AsyncGitService()Sandbox git namespace.
AsyncGitService.__init__
Section titled “AsyncGitService.__init__”def __init__(transport: AsyncTransport) -> NoneAsyncGitService.clone
Section titled “AsyncGitService.clone”async def clone(url: str, path: str, *, branch: Optional[str] = None, commit_id: Optional[str] = None, depth: Optional[int] = None, insecure_skip_tls: bool = False, username: Optional[str] = None, password: Optional[str] = None, timeout: Optional[float] = None) -> NoneClone a repository, optionally shallow and with per-call TLS relaxation.
AsyncGitService.init
Section titled “AsyncGitService.init”async def init(path: str, *, bare: bool = False, initial_branch: Optional[str] = None) -> NoneAsyncGitService.status
Section titled “AsyncGitService.status”async def status(path: str) -> GitStatusReturn git status.
AsyncGitService.list_branches
Section titled “AsyncGitService.list_branches”async def list_branches(path: str) -> ListResultList branch names as {items, next_cursor}.
AsyncGitService.list_remotes
Section titled “AsyncGitService.list_remotes”async def list_remotes(path: str) -> ListResult[JsonObject]AsyncGitService.history
Section titled “AsyncGitService.history”async def history(path: str) -> ListResultList commits, newest first.
AsyncGitService.create_branch
Section titled “AsyncGitService.create_branch”async def create_branch(path: str, name: str) -> NoneCreate a branch.
AsyncGitService.add_remote
Section titled “AsyncGitService.add_remote”async def add_remote(path: str, name: str, url: str) -> NoneAsyncGitService.delete_branch
Section titled “AsyncGitService.delete_branch”async def delete_branch(path: str, name: str) -> NoneDelete a branch.
AsyncGitService.checkout_branch
Section titled “AsyncGitService.checkout_branch”async def checkout_branch(path: str, branch: str) -> NoneCheckout a branch.
AsyncGitService.add
Section titled “AsyncGitService.add”async def add(path: str, files: Sequence[str]) -> NoneStage files.
AsyncGitService.reset
Section titled “AsyncGitService.reset”async def reset(path: str, *, mode: Optional[str] = None, target: Optional[str] = None, files: Optional[Sequence[str]] = None) -> NoneAsyncGitService.restore
Section titled “AsyncGitService.restore”async def restore(path: str, files: Sequence[str], *, staged: Optional[bool] = None, worktree: Optional[bool] = None, source: Optional[str] = None) -> NoneAsyncGitService.commit
Section titled “AsyncGitService.commit”async def commit(path: str, message: str, *, author: str, email: str, allow_empty: bool = False) -> GitCommitResponseCommit staged changes, optionally allowing an empty commit.
AsyncGitService.pull
Section titled “AsyncGitService.pull”async def pull(path: str, *, username: Optional[str] = None, password: Optional[str] = None, branch: Optional[str] = None, remote: Optional[str] = None, timeout: Optional[float] = None) -> NonePull from the configured or named remote.
AsyncGitService.push
Section titled “AsyncGitService.push”async def push(path: str, *, username: Optional[str] = None, password: Optional[str] = None, branch: Optional[str] = None, remote: Optional[str] = None, set_upstream: bool = False, timeout: Optional[float] = None) -> NonePush to the configured or named remote.
AsyncGitService.get_config
Section titled “AsyncGitService.get_config”async def get_config(key: str, *, path: Optional[str] = None, scope: str = 'global') -> Optional[str]AsyncGitService.set_config
Section titled “AsyncGitService.set_config”async def set_config(key: str, value: str, *, path: Optional[str] = None, scope: str = 'global') -> NoneGitCommitResponse
Section titled “GitCommitResponse”GitCommitResponse = _gen.toolbox.CommitResponseGitStatus
Section titled “GitStatus”GitStatus = _gen.toolbox.StatusResponse