oxen.workspace
Workspace Objects
Examples
Adding Files to a Workspace
Create a workspace from a branch.__init__
repo-PyRemoteRepoThe remote repo to create the workspace from.branch-strThe branch name to create the workspace from. The workspace will be tied to the commit id of the branch at the time of creation.workspace_id-Optional[str]The workspace id to create the workspace from. If left empty, will create a unique workspace id.workspace_name-Optional[str]The name of the workspace. If left empty, the workspace will have no name.path-Optional[str]The path to the workspace. If left empty, the workspace will be created in the root of the remote repo.
id
name
branch
commit_id
repo
status
path-strThe path to check the status of.
add
src-strThe path to the local file to be stageddst-strThe path in the remote repo where the file will be added
rm
path-strThe path to the file on workspace to be removed
commit
message-strThe message to commit withbranch_name-Optional[str]The name of the branch to commit to. If left empty, will commit to the branch the workspace was created from.