Skip to main content

set_smudge_progress

Function set_smudge_progress 

pub fn set_smudge_progress(callback: Arc<dyn Fn(usize, &str) + Sync + Send>)
Expand description

Set a callback to receive per-file smudge progress during checkout. Resets the internal counter to 0.

Uses thread-local storage, so each spawn_blocking thread gets its own independent hook. Safe for concurrent checkouts.