来源:pygit2
浏览 575
扫码
分享
2019-05-28 08:04:13
Worktrees
Repository.
addworktree
(_name, path[, ref])Create a new worktree for this repository. If ref is specified, no new branch will be created and the provided ref will be checked out instead.
Repository.
list_worktrees
() → [str, …]
Return a list with all the worktrees of this repository.
Repository.
lookupworktree
(_name) → Worktree
Lookup a worktree from its name.
class pygit2.
Worktree
Worktree object.