Module vcs

Source
Expand description

Helpers to gather the VCS information for cargo package.

Structs§

GitVcsInfo
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.
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_pathspec 🔒
Use pathspec so git only matches a certain path prefix
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.