Crate git_revision

Source
Expand description

Interact with git revisions by parsing them from rev-specs and describing them in terms of reference names.

§Feature Flags

  • serde1 — Data structures implement serde::Serialize and serde::Deserialize.

Modules§

describe
spec

Enums§

Spec
A revision specification without any bindings to a repository, useful for serialization or movement over thread boundaries.

Functions§

describe
Given a commit id, traverse the commit graph and collect candidate names from the name_by_oid mapping to produce an Outcome, which converted into_format() will produce a typical git describe string.