Skip to main content

apply_labeled_stash

Function apply_labeled_stash 

Source
pub fn apply_labeled_stash(
    repo: &mut Repository,
    branch: &str,
    worktree: &str,
) -> Result<StashRestore>
Expand description

Apply the stash labeled for (branch, worktree), dropping it on a clean apply.

On Conflict the entry is kept so the user can recover manually. The caller is responsible for user-facing messaging.