pub fn add_patch(
tree: &dyn PyWorkingTree,
patches_directory: &Path,
name: &str,
contents: &[u8],
header: Option<PatchHeader>,
) -> Result<(Vec<PathBuf>, String), String>Expand description
Add a new patch.
ยงArguments
tree- Tree to editpatches_directory- Name of patches directoryname- Patch name without suffixcontents- Diffheader- RFC822 to read
Returns: Name of the patch that was written (including suffix)