[−][src]Function git_state::git_state
pub fn git_state(repo: &Path) -> Result<RepositoryState, ()>
Determine the state of a git repository.
This checks whether the progress is in a merging/rebasing/bisecing/etc state.
If in no such state, Clean
is returned.
Based on:
- https://github.com/libgit2/libgit2/blob/52294c413100ed4930764addc69beadd82382a4c/src/repository.c#L2867-L2908
- https://libgit2.org/libgit2/#HEAD/group/repository/git_repository_state