gps 7.3.3

Official CLI & library for Git Patch Stack
Documentation
1
2
3
4
5
6
7
8
9
use std::path::Path;

/// Check if we are in the middle of a rebase
///
/// Checks to see if we are in the middle of a rebase given a path to the .git directory within the
/// repository and return `true` if we are or `false` if we aren't.
pub fn in_rebase<P: AsRef<Path>>(repo_gitdir: P) -> bool {
    repo_gitdir.as_ref().join("rebase-merge").is_dir()
}