Function git

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

The real git status check starts from here.