pub fn export_to_git(
suture_path: &Path,
git_path: &Path,
) -> Result<ExportResult, BridgeError>๐Deprecated since 0.1.0:
Git bridge is experimental and may produce incorrect results. See module docs.
Expand description
Export a Suture repository to a Git repository.
Creates a new Git repository at git_path and exports all
patches from the Suture repository at suture_path.
ยงHow it works
- Creates a new Git repository at
git_path - Walks the Suture patch DAG from all branch tips
- For each patch:
a. Applies the patch to the working tree
b. Runs
git add+git commitwith the patch message - Recreates branch structure
โ ๏ธ EXPERIMENTAL โ Export may produce incorrect Git history. See module-level documentation.