pub fn reference(
        &mut self,
        reference: Option<&'a Reference<'_>>,
    ) -> &mut WorktreeAddOptions<'a> {
        self.raw.reference = if let Some(reference) = reference {
            reference.raw()
        } else {
            ptr::null_mut()
        };
        self
    }
/// reference to use for the new worktree HEAD
reference to use for the new worktree HEAD
reference to use for the new worktree HEAD
pub fn reference(
        &mut self,
        reference: Option<&'a Reference<'_>>,
    ) -> &mut WorktreeAddOptions<'a> {
        self.raw.reference = if let Some(reference) = reference {
            reference.raw()
        } else {
            ptr::null_mut()
        };
        self
    }
pub fn reference ( & mut self , reference : Option < & ' a Reference < ' _ > > , ) -> & mut WorktreeAddOptions < ' a > { self . raw . reference = if let Some ( reference ) = reference { reference . raw ( ) } else { ptr :: null_mut ( ) } ; self }
reference to use for the new worktree HEAD
reference to use for the new worktree HEAD
&mut self
reference
Option<&'a Reference<'_>>
&mut self
reference
Option<&'a Reference<'_>>