Crate git_checks [] [src]

Git checks

There are many things in git repositories which can be checked mechanically such as whitespace errors, submodule availability, eligibility for a branch, and more. This crate provides traits for these checks and a set of common checks which operate with minimal file inspection.

Modules

checks

Basic Checks

Structs

CheckGitContext

Git context for use in checks.

CheckResult

The results of a check.

Commit

Representation of a commit with information useful for commit checks.

DiffInfo

Information about a file that changed in a commit.

Error

The Error type.

GitCheckConfiguration

Configuration for checks to run against a repository.

Identity

An identity for creating git commits.

SubmoduleContext

A git context for a submodule for use within checks.

Enums

AttributeState

States attributes may be in.

ErrorKind

The kind of an error.

StatusChange

Ways a file can be changed in a commit.

Traits

BranchCheck

Interface for checks which runs once for the entire branch.

Check

Interface for checks which run for each commit.

ResultExt

Additional methods for Result, for easy interaction with this crate.

Type Definitions

Result

Convenient wrapper around std::Result.