Struct git2::Mailmap[][src]

pub struct Mailmap { /* fields omitted */ }

A structure to represent a repository’s .mailmap file.

The representation cannot be written to disk.

Implementations

impl Mailmap[src]

pub fn new() -> Result<Mailmap, Error>[src]

Creates an empty, in-memory mailmap object.

pub fn from_buffer(buf: &str) -> Result<Mailmap, Error>[src]

Creates an in-memory mailmap object representing the given buffer.

pub fn add_entry(
    &mut self,
    real_name: Option<&str>,
    real_email: Option<&str>,
    replace_name: Option<&str>,
    replace_email: &str
) -> Result<(), Error>
[src]

Adds a new entry to this in-memory mailmap object.

pub fn resolve_signature(
    &self,
    sig: &Signature<'_>
) -> Result<Signature<'static>, Error>
[src]

Resolves a signature to its real name and email address.

Trait Implementations

impl Drop for Mailmap[src]

Auto Trait Implementations

impl RefUnwindSafe for Mailmap

impl !Send for Mailmap

impl !Sync for Mailmap

impl Unpin for Mailmap

impl UnwindSafe for Mailmap

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.