Skip to main content

defer

Function defer 

Source
pub fn defer()
Expand description

Asks the process to note interrupts rather than die on them.

Between the moment git creates the worktree and the moment git finishes checking it out there is a window where the destination exists, is registered in git worktree list, and holds nothing. Dying inside it leaves the user a worktree that looks real and reports its whole tree as deleted. Instead the request is recorded, the clone phase stops at its next path, git still finishes the checkout, and the process then dies of the original signal.