Skip to main content

update_init

Function update_init 

Source
pub fn update_init(git: &dyn GitCli, worktree_dir: &Path) -> Result<()>
Expand description

Initializes and updates all submodules in worktree_dir, recursively (git submodule update --init --recursive). Propagates a subprocess error; callers decide whether that is fatal.

Parallelism is deliberately not a wt option: git already honours its own submodule.fetchJobs here, and a second knob for the same thing would only apply on the paths wt happens to own.