Function git

Source
fn git(
    ws: &Workspace<'_>,
    pkg: &Package,
    src_files: &[PathEntry],
    repo: &Repository,
    opts: &PackageOpts<'_>,
) -> CargoResult<Option<GitVcsInfo>>
Expand description

The real git status check starts from here.