git-state
A simple binary and Rust library to probe the state of a git repository. Useful for shell prompts.
This reimplements git2::git_repository_state
in pure Rust.
This doesn't have any nasty compile or runtime git2
dependencies.
The git command-line interface doesn't provide this functionality.
States
Any of the following state is returned:
Clean
Merge
Revert
RevertSequence
CherryPick
CherryPickSequence
Bisect
Rebase
RebaseInteractive
RebaseMerge
ApplyMailbox
ApplyMailboxOrRebase
Usage
Command-line usage:
# or
License
This project is released under the MIT license. Check out the LICENSE file for more information.