Crate git

source ·
Expand description

Git Interactive Rebase Tool - Git Module

Description

This module is used to handle working with external Git systems.

use git::Repository;
let repository = Repository::open_from_env().unwrap();

let config = repository.load_config().unwrap();
let pager = config.get_str("core.pager");

Test Utilities

To facilitate testing the usages of this crate, a set of testing utilities are provided. Since these utilities are not tested, and often are optimized for developer experience than performance, they should only be used in test code.

Modules

  • Git Interactive Rebase Tool - Git crate errors
  • Utilities for writing tests that interact with Git.

Structs

  • Represents a commit.
  • Represents a commit with a diff
  • Options for loading a commit with diff
  • A structure representing a git configuration key/value store
  • Represents a single set of changes
  • Represents a single line in a diff
  • Represents a file change within a Git repository
  • Represents a pointer to an object in Git.
  • A light cloneable, simple wrapper around the git2::Repository struct
  • Represents a user within a commit with a name and email address

Enums

  • An enumeration of possible errors that can happen when working with a git repository.
  • Represents the mode of a file
  • The origin of a diff line
  • Represents the kind of a reference
  • Represents the type of change of a diff entry