pub fn open_from_repository(repo: &Repository) -> Result<Worktree, Error> {
        let mut raw = ptr::null_mut();
        unsafe {
            try_call!(raw::git_worktree_open_from_repository(&mut raw, repo.raw()));
            Ok(Binding::from_raw(raw))
        }
    }
/// Open a worktree of a the repository
///
/// If a repository is not the main tree but a worktree, this
/// function will look up the worktree inside the parent
/// repository and create a new `git_worktree` structure.
Open a worktree of a the repository
If a repository is not the main tree but a worktree, this
function will look up the worktree inside the parent
repository and create a new `git_worktree` structure.
Open a worktree of a the repository If a repository is not the main tree but a worktree this function will look up the worktree inside the parent repository and create a new ` git_worktree ` structure .
pub fn open_from_repository(repo: &Repository) -> Result<Worktree, Error> {
        let mut raw = ptr::null_mut();
        unsafe {
            try_call!(raw::git_worktree_open_from_repository(&mut raw, repo.raw()));
            Ok(Binding::from_raw(raw))
        }
    }
pub fn open_from_repository ( repo : & Repository ) -> Result < Worktree , Error > { let mut raw = ptr :: null_mut ( ) ; unsafe { try_call ! ( raw git_worktree_open_from_repository ( mut raw repo raw ( ) ) ) ; Ok ( Binding :: from_raw ( raw ) ) } }
Open a worktree of a the repository
If a repository is not the main tree but a worktree, this
function will look up the worktree inside the parent
repository and create a new `git_worktree` structure.
Open a worktree of a the repository If a repository is not the main tree but a worktree this function will look up the worktree inside the parent repository and create a new ` git_worktree ` structure .
repo
&Repository
repo
&Repository