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

impl_prelude

Module for importing all types and traits for implementing 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.

Enums

AttributeState

States attributes may be in.

ErrorKind

The kind of an error.

FileName

A representation of filenames as given by Git.

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.