Expand description
Helpers to gather the VCS information for cargo package.
Re-exportsΒ§
use crate::ops::PackageOpts;πuse crate::sources::PathEntry;πuse crate::workspace::Package;πuse crate::workspace::Workspace;πuse crate::CargoResult;πuse crate::GlobalContext;πuse anyhow::Context;πuse cargo_util::paths;πuse cargo_util_terminal::report::Level;πuse gix::bstr::BString;πuse gix::bstr::ByteSlice;πuse gix::bstr::ByteVec;πuse gix::dir::walk::EmissionMode;πuse gix::dirwalk::Options;πuse gix::index::entry::Mode;πuse gix::status::tree_index::TrackRenames;πuse gix::worktree::stack::state::ignore::Source;πuse serde::Serialize;πuse serde::Serialize;πuse std::path::Path;πuse std::path::PathBuf;πuse tracing::debug;π
StructsΒ§
- GitVcs
Info - Represents the Git VCS information when packaging.
- VcsInfo
- Represents the VCS information when packaging.
FunctionsΒ§
- check_
repo_ state - Checks if the package source is in a git DVCS repository.
- collect_
statuses π - Helper to collect dirty statuses for a single repo.
relative_package_rootisSomeif the root is a sub-directory of the workdir. Writes dirty files outsiderelative_package_rootintodirty_files_outside_package_root, and all everything else intodirty_files. - configure_
dirwalk π - dirty_
files_ πoutside_ pkg_ root - Checks whether βincludedβ source files outside package root have been modified.
- git π
- The real git status check starts from here.
- relative_
package_ πroot - Make
pkg_rootrelative to therepoworkdir. - status_
submodules π - Helper to collect dirty statuses while recursing into submodules.
- warn_
symlink_ πchecked_ out_ as_ plain_ text_ file - Warns if any symlinks were checked out as plain text files.