pub struct CloneOutcome {
pub git_dir: PathBuf,
pub branch_oid: Option<ObjectId>,
pub empty: bool,
}Expand description
The structured result of a clone.
Fields§
§git_dir: PathBufThe destination repository’s $GIT_DIR (the .git directory created by
the init step). The caller uses it for its post-checkout steps.
branch_oid: Option<ObjectId>The object id the local branch was created at (the fetched remote tip),
or None when the remote was empty/unborn (no branch was created and
HEAD was left as an unborn symref to checkout_branch).
empty: boolTrue when the remote advertised no refs for checkout_branch and no
--branch/--revision was requested: an empty/unborn-repository clone.
The caller prints git’s “You appear to have cloned an empty repository.”
warning and skips the worktree checkout.
Trait Implementations§
Source§impl Clone for CloneOutcome
impl Clone for CloneOutcome
Source§fn clone(&self) -> CloneOutcome
fn clone(&self) -> CloneOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CloneOutcome
impl RefUnwindSafe for CloneOutcome
impl Send for CloneOutcome
impl Sync for CloneOutcome
impl Unpin for CloneOutcome
impl UnsafeUnpin for CloneOutcome
impl UnwindSafe for CloneOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more