a34fe57
zhenyi
feat(lib): add new handlers and export views (db users_loader, repo readme/lifecycle/tree/PR/release, issue reopen, export sidebar/basic)
a34fe57
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>;
}