Expand description
See GitSource.
Re-exportsยง
use crate::sources::IndexSummary;๐use crate::sources::RecursivePathSource;๐use crate::sources::git::utils::GitDatabase;๐use crate::sources::git::utils::GitRemote;๐use crate::sources::git::utils::rev_to_oid;๐use crate::sources::source::MaybePackage;๐use crate::sources::source::QueryKind;๐use crate::sources::source::Source;๐use crate::util::GlobalContext;๐use crate::util::cache_lock::CacheLockMode;๐use crate::util::errors::CargoResult;๐use crate::util::hex::short_hash;๐use crate::util::interning::InternedString;๐use crate::workspace::GitReference;๐use crate::workspace::SourceId;๐use crate::workspace::global_cache_tracker;๐use crate::workspace::Dependency;๐use crate::workspace::Package;๐use crate::workspace::PackageId;๐use anyhow::Context as _;๐use cargo_util::paths::exclude_from_backups_and_indexing;๐use std::cell::RefCell;๐use std::fmt;๐use std::fmt::Debug;๐use std::fmt::Debug;๐use std::fmt::Formatter;๐use tracing::trace;๐use url::Url;๐
Structsยง
- GitSource
GitSourcecontains one or more packages gathering from a Git repository. Under the hood it usesRecursivePathSourceto discover packages inside the repository.
Enumsยง
- Revision ๐
- Indicates a Git revision that might be locked or deferred to be resolved.
Functionsยง
- ident ๐
- Create an identifier from a URL,
essentially turning
proto://host/path/repointorepo-<hash-of-url>. - ident_
shallow ๐ - Like
ident(), but appends-shallowto it, turningproto://host/path/repointorepo-<hash-of-url>-shallow.