Expand description
Git functionalities
Under the hood, this crate uses the git2
crate. It wraps it to provide a higher-level API.
Structs§
Constants§
- USER_
EMAIL - Config key for the user email
- USER_
NAME - Config key for the user name
Functions§
- add_all
- Runs
git add --all
- commit_
log - Returns the complete commit history
- commit_
to_ head - Performs a commit to the head
- discover_
repo - Discovers the repo at or above the provided path
- get_
config - Returns the repo config
- get_
origin_ url - Retrieves the repo origin url
- get_
tag_ refs - Retrieves all the repo tag references
- list_
tags - Retrieves all the repo tags (lightweight and annotated)
- push_
to_ remote - Performs a push
- repo_
status - Checks if the repo is clean, ie has no uncommited and untracked files
- set_
annotated_ tag - Sets an annotated tag to the HEAD
Type Aliases§
- GitConfig
- A more user-friendly config object
- GitRepository
- A simple alias for git2::Repository
- Status
- Status of a file
- Status
Show - Status show option