pub struct Options<'a> {
pub shallow_file: PathBuf,
pub shallow: &'a Shallow,
pub tags: Tags,
pub reject_shallow_remote: bool,
}
Expand description
Options for use in fetch()
Fields§
§shallow_file: PathBuf
The path to the file containing the shallow commit boundary.
When needed, it will be locked in preparation for being modified.
shallow: &'a Shallow
How to deal with shallow repositories. It does affect how negotiations are performed.
Describe how to handle tags when fetching.
reject_shallow_remote: bool
If 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> Freeze 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> 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