d977f67
zhenyi
refactor(dvcs): refresh dvcs/git, dvcs/gitsmart, dvcs/gitssh, dvcs/gitsync, dvcs/gitauth
d977f67
use crate::patch::types::{ApplyResult, ParsedPatch, Patch};
pub trait PatchOps {
fn patch_generate(&self, base: &str, head: &str) -> Result<Patch, crate::Error>;
fn patch_parse(&self, content: &str) -> Result<ParsedPatch, crate::Error>;
fn patch_apply(&self, patch: &str, base: &str) -> Result<ApplyResult, crate::Error>;
}