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.