pub struct Options<'a> {
pub shallow_file: PathBuf,
pub shared_repository_permissions: SharedPermissions,
pub shallow: &'a Shallow,
pub tags: Tags,
pub reject_shallow_remote: bool,
}Expand description
Options for use in fetch()
Fields§
§shallow_file: PathBufThe path to the file containing the shallow commit boundary.
When needed, it will be locked in preparation for being modified.
The parsed core.sharedRepository policy to apply when writing the shallow boundary.
shallow: &'a ShallowHow to deal with shallow repositories. It does affect how negotiations are performed.
Describe how to handle tags when fetching.
reject_shallow_remote: boolIf true, if we fetch from a remote that only offers shallow clones, the operation will fail with an error
instead of writing the shallow boundary to the shallow file.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Options<'a>
impl<'a> Freeze for Options<'a>
impl<'a> Move for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnsafeUnpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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