Expand description
Interact with git revisions by parsing them from rev-specs and describing them in terms of reference names.
§Feature Flags
describe(enabled by default) —git describefunctionalitymerge_base(enabled by default) —git merge-basefunctionalityserde— Data structures implementserde::Serializeandserde::Deserialize.
Modules§
- describe
describe - graph
- merge_
base merge_base - spec
Structs§
- Graph
- A graph of commits which additionally allows to associate data with commits.
- Priority
Queue - A utility type implementing a queue which can be used to automatically sort data by its time in ascending order.
Enums§
- Spec
- A revision specification without any bindings to a repository, useful for serialization or movement over thread boundaries.
Functions§
- describe
describe - Given a
commitid, traverse the commitgraphand collect candidate names from thename_by_oidmapping to produce anOutcome, which convertedinto_format()will produce a typicalgit describestring. - merge_
base merge_base - Given a commit at
firstid, traverse the commitgraphand return all possible merge-base between it andothers, sorted from best to worst. ReturnsNoneif there is no merge-base asfirstandothersdon’t share history. Ifothersis empty,Some(first)is returned.