pub fn git_reference(&self) -> Option<&GitReference> {
        if let SourceKind::Git(ref s) = self.kind {
            Some(s)
        } else {
            None
        }
    }
/// Gets the Git reference if this is a git source, otherwise `None`.
Gets the Git reference if this is a git source, otherwise `None`.
Gets the Git reference if this is a git source otherwise ` None ` .
pub fn git_reference(&self) -> Option<&GitReference> {
        if let SourceKind::Git(ref s) = self.kind {
            Some(s)
        } else {
            None
        }
    }
pub fn git_reference ( & self ) -> Option < & GitReference > { if let SourceKind :: Git ( ref s ) = self . kind { Some ( s ) } else { None } }
Gets the Git reference if this is a git source, otherwise `None`.
Gets the Git reference if this is a git source otherwise ` None ` .
&self
&self