Function from_tree

Source
pub fn from_tree(
    repo: Repository,
    spec: OsString,
    index_path: Option<PathBuf>,
    force: bool,
    skip_hash: bool,
) -> Result<()>