Skip to main content

open

Function open 

Source
pub fn open(dir: &Path) -> Result<Bundle>
Expand description

打开 bundle:<dir> 可为 bundle 根,也可为其内部的分支/内容目录。

解析规则(见 [bundle_root_of]):向上找到真正持有这份 bundle 的根目录再整体扫描 —— 因此 str <cmd> <bundle>/<分支> 与在分支目录内执行 str <cmd> 等价, [uuid] 的缺省目标随之成为「当前节点」(见 [target_branch])。