gitdataai/lib/git/cmd/merge/merge_is_conflicted.rs
2026-05-30 01:38:40 +08:00

9 lines
228 B
Rust

use crate::{bare::GitBare, errors::GitResult};
impl GitBare {
pub fn merge_is_conflicted(&self) -> GitResult<bool> {
let repo = self.gix_repo()?;
Ok(repo.try_find_reference("MERGE_HEAD")?.is_some())
}
}