Docs.rs
  • git-repository-0.7.2
    • git-repository 0.7.2
    • Docs.rs crate page
    • MIT/Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • Byron
    • Dependencies
      • git-actor ^0.3.1 normal
      • git-diff ^0.8.0 normal
      • git-features ^0.16.0 normal
      • git-hash ^0.5.0 normal
      • git-object ^0.12.0 normal
      • git-odb ^0.20.0 normal
      • git-pack ^0.8.0 normal
      • git-protocol ^0.9.0 normal
      • git-ref ^0.5.0 normal
      • git-tempfile ^0.6.0 normal
      • git-traverse ^0.7.0 normal
      • git-url ^0.3.0 normal
      • quick-error ^2.0.0 normal
      • signal-hook ^0.3.9 normal
      • anyhow ^1 dev
      • signal-hook ^0.3.9 dev
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-unknown-linux-gnu
    • 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_repository

Version 0.7.2

See all git_repository's items

  • Modules
  • Structs
  • Enums
  • Traits
  • Functions

Modules

  • ext
  • init
  • interrupt
  • parallel
  • path
  • prelude
  • progress
  • reference
  • repository

Structs

  • Cache
  • Object
  • Reference
  • Repository
  • Shared
  • SharedArc

Enums

  • Kind

Traits

  • Access
  • Progress

Functions

  • discover
Change settings

Crate git_repository[−][src]

Expand description

This crate provides the Repository abstraction which serves as a hub into all the functionality of git.

It’s powerful and won’t sacrifice performance while still increasing convenience compared to using the sub-crates individually. Sometimes it may hide complexity under the assumption that the performance difference doesn’t matter for all but the fewest tools out there, which would be using the underlying crates directly or file an issue.

The prelude and extensions

With use git_repository::prelude::* you should be ready to go as it pulls in various extension traits to make functionality available on objects that may use it.

The method signatures are still complex and may require various arguments for configuration and cache control.

Easy-Mode

Most extensions to existing objects provide an obj_with_extension.easy(&repo).an_easier_version_of_a_method() or easy(&repo) method to hide all complex arguments and sacrifice some performance for a lot of convenience.

When starting out, use easy(…) and migrate to the more detailed method signatures to squeeze out more performance.

Cargo-features

One-stop-shop

To make using sub-crates easier these are re-exported into the root of this crate.

git_repository::

  • hash
  • url
  • actor
  • object
    • [bstr][object::bstr]
  • odb
    • pack
  • refs
  • interrupt
  • tempfile
  • traverse
  • diff
  • Progress
  • progress
  • interrupt
  • protocol
    • [transport][protocol::transport]

Re-exports

pub use git_actor as actor;
pub use git_diff as diff;
pub use git_hash as hash;
pub use git_object as object;
pub use git_odb as odb;
pub use git_protocol as protocol;
pub use git_ref as refs;
pub use git_tempfile as tempfile;
pub use git_traverse as traverse;
pub use git_url as url;
pub use path::Path;

Modules

ext
init
interrupt

Process-global interrupt handling

parallel

Run computations in parallel, or not based the parallel feature toggle.

path
prelude
progress

Various prodash types along with various utilities for comfort.

reference
repository

Structs

Cache
Object
Reference
Repository
Shared
SharedArc

A handle is what threaded programs would use to have thread-local but otherwise shared versions the same Repository.

Enums

Kind

Traits

Access
Progress

A trait for describing hierarchical process.

Functions

discover

Results for DisplayValue

git_repository::progress::unit::DisplayValue
A trait to encapsulate all capabilities needed to display …
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.
git_repository::progress::Unit::as_display_value
Return self as trait object implementing DisplayValue.