Function git_tempfile::setup

source ·
pub fn setup(mode: SignalHandlerMode)
Expand description

Initialize signal handlers and other state to keep track of tempfiles, and must be called before the first tempfile is created, allowing to set the mode in which signal handlers are installed.

Only has an effect the first time it is called.

Note that it is possible to not call this function and instead call handler::cleanup_tempfiles() from a handler under the applications control.