Docs.rs
  • git-revision-0.10.0
    • git-revision 0.10.0
    • Docs.rs crate page
    • MIT/Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Byron
    • Dependencies
      • bstr ^1.0.1 normal
      • document-features ^0.2.1 normal
      • git-date ^0.4.0 normal
      • git-hash ^0.10.1 normal
      • git-hashtable ^0.1.0 normal
      • git-object ^0.26.0 normal
      • serde ^1.0.114 normal
      • thiserror ^1.0.26 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

Crate git_revision

logo

Crate git_revision

  • Version 0.10.0
  • All Items
  • Modules
  • Enums
  • Functions

Crates

  • git_revision
?
Change settings

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.

Results

git_revision::spec::Kind
How to interpret a revision specification, or revspec.
git_revision::spec::parse::delegate::Kind
Combine one or more specs into a range of multiple.
git_revision::spec::parse::delegate::Kind::kind
Set the kind of the spec, which happens only once if it …
git_revision::Spec::kind
Return the kind of this specification.
git_revision::spec::parse::Error::KindSetTwice::kind
git_revision::spec::parse::Error::KindSetTwice::prev_kind
git_revision::spec::parse::delegate::PeelTo::ObjectKind
An object of the given kind.
git_revision::spec::parse::Error::KindSetTwice
git_revision::spec::parse::delegate::Navigate::find
Find the first revision/commit whose message matches the …
git_revision::describe::Error::Find
git_revision::describe::Outcome::id
The input commit object id that we describe.
git_revision::describe::Format::id
The id of the commit to describe.
git_revision::describe::Error::Find::oid
git_revision::spec::parse::Delegate::done
Called at the end of a successful parsing operation. It …
git_revision::Spec::into
Calls U::from(self).
git_revision::describe::Outcome::into
Calls U::from(self).
git_revision::describe::Format::into
Calls U::from(self).
git_revision::describe::Options::into
Calls U::from(self).
git_revision::describe::Error::into
Calls U::from(self).
git_revision::spec::Kind::into
Calls U::from(self).
git_revision::spec::parse::Error::into
Calls U::from(self).
git_revision::spec::parse::delegate::PrefixHint::into
Calls U::from(self).
git_revision::spec::parse::delegate::ReflogLookup::into
Calls U::from(self).
git_revision::spec::parse::delegate::Traversal::into
Calls U::from(self).
git_revision::spec::parse::delegate::PeelTo::into
Calls U::from(self).
git_revision::spec::parse::delegate::SiblingBranch::into
Calls U::from(self).
git_revision::describe::Format::long
Set this instance to print in long mode, that is if depth …
git_revision::describe::Format::long
If true, the long form of the describe string will be …
git_revision::spec::parse::Error::Time
git_revision::spec::parse::delegate::Kind::kind
Set the kind of the spec, which happens only once if it …
git_revision::spec::Kind::eq
git_revision::spec::Kind::cmp
git_revision::spec::Kind::fmt
git_revision::spec::Kind::hash
git_revision::spec::Kind::clone
git_revision::spec::Kind::serialize
git_revision::spec::Kind::partial_cmp
git_revision::describe
Given a commit id, traverse the commit graph and collect …
git_revision::Spec::kind
Return the kind of this specification.
git_revision::spec::Kind::clone
git_revision::spec::Kind::default
git_revision::spec::Kind::deserialize