gix_refspec::match_group

Type Alias Source

Source
pub type Source = SourceRef<'static>;
Expand description

The source (or left-hand) side of a mapping, which owns its name.

Aliased Type§

enum Source {
    FullName(Cow<'static, BStr>),
    ObjectId(ObjectId),
}

Variants§

§

FullName(Cow<'static, BStr>)

A full reference name, which is expected to be valid.

Validity, however, is not enforced here.

§

ObjectId(ObjectId)

The name of an object that is expected to exist on the remote side. Note that it might not be advertised by the remote but part of the object graph, and thus gets sent in the pack. The server is expected to fail unless the desired object is present but at some time it is merely a request by the user.