This class represent a worktree.
Register to the global list of all worktrees in ~/.config/qi/qibuild.xml
Called when an observer wants to be notified about project changes
Load the worktree.xml file.
Re-read every qiproject.xml. Useful when projects are added or removed, or when qiproject.xml change
Perform a few sanity checks
Get the dot_qi directory.
Get the path to .qi/worktree.xml
For every project in cache, re-read the subprojects and and them to the list
Get a project
Parameters: |
|
---|---|
Returns: | a WorkTreeProject instance or None if raises is False and project is not found |
Add a project to a worktree
Parameters: | path – path to the project, can be absolute, or relative to the worktree root |
---|
Remove a project from a worktree
Parameters: |
|
---|
Move a project from a worktree
Make sure the path is a POSIX path, relative to the worktree root