Skip to main content

remove_template

Function remove_template 

Source
pub fn remove_template(repo: &Path, template: &Path) -> Result<()>
Expand description

Remove template, its registration in repo, and the lock, stamp and staging files next to it. A path that is not an extra checkout git-cow made fails with Foreign and stays. Call it only when no add or warm on this template can run: one waiting for the lock would get a deleted file, and the next caller a new one

ยงErrors

When template is Foreign, or git worktree remove or deleting a file fails