Skip to main content

backup_worktree

Function backup_worktree 

Source
pub fn backup_worktree(
    branch: Option<&str>,
    all: bool,
    output_dir: Option<&Path>,
) -> Result<()>
Expand description

Create backup of worktree(s) using git bundle.

output_dir overrides the default backups root (~/.config/.../backups) when provided; the directory is created if it does not exist.