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

14 lines
301 B
Rust

use crate::{bare::GitBare, errors::GitResult};
impl GitBare {
pub fn merge_abort(&self) -> GitResult<()> {
self.git_command_trusted_stdout(vec![
"update-ref".to_string(),
"-d".to_string(),
"MERGE_HEAD".to_string(),
])?;
Ok(())
}
}