Enum git_repository::open::ReplacementObjects
source · [−]pub enum ReplacementObjects {
UseWithEnvironmentRefPrefixOrDefault {
allow_disable_via_environment: bool,
},
UseWithRefPrefix {
prefix: PathBuf,
allow_disable_via_environment: bool,
},
Disable,
}
Expand description
A way to configure the usage of replacement objects, see git replace
.
Variants
UseWithEnvironmentRefPrefixOrDefault
Fields
allow_disable_via_environment: bool
If true, default true, a standard environment variable GIT_NO_REPLACE_OBJECTS
to disable replacement objects entirely.
Allow replacement objects and configure the ref prefix the standard environment variable GIT_REPLACE_REF_BASE
,
or default to the standard refs/replace/
prefix.
UseWithRefPrefix
Fields
prefix: PathBuf
The ref prefix to use, like refs/alternative/
- note the trailing slash.
allow_disable_via_environment: bool
If true, default true, a standard environment variable GIT_NO_REPLACE_OBJECTS
Use replacement objects and configure the prefix yourself.
Disable
Do not use replacement objects at all.
Trait Implementations
sourceimpl Clone for ReplacementObjects
impl Clone for ReplacementObjects
sourcefn clone(&self) -> ReplacementObjects
fn clone(&self) -> ReplacementObjects
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReplacementObjects
impl Debug for ReplacementObjects
Auto Trait Implementations
impl RefUnwindSafe for ReplacementObjects
impl Send for ReplacementObjects
impl Sync for ReplacementObjects
impl Unpin for ReplacementObjects
impl UnwindSafe for ReplacementObjects
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more