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§
- errors
- Git Interactive Rebase Tool - Git crate errors
- testutil
- Utilities for writing tests that interact with Git.
Structs§
- Commit
- Represents a commit.
- Commit
Diff - Represents a commit with a diff
- Commit
Diff Loader Options - Options for loading a commit with diff
- Config
- A structure representing a git configuration key/value store
- Delta
- Represents a single set of changes
- Diff
Line - Represents a single line in a diff
- File
Status - Represents a file change within a Git repository
- Reference
- Represents a pointer to an object in Git.
- Repository
- A light cloneable, simple wrapper around the
git2::Repository
struct - User
- Represents a user within a commit with a name and email address
Enums§
- Error
Code - An enumeration of possible errors that can happen when working with a git repository.
- File
Mode - Represents the mode of a file
- Origin
- The origin of a diff line
- Reference
Kind - Represents the kind of a reference
- Status
- Represents the type of change of a diff entry