Skip to main content

export_to_git

Function export_to_git 

Source
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

  1. Creates a new Git repository at git_path
  2. Walks the Suture patch DAG from all branch tips
  3. For each patch: a. Applies the patch to the working tree b. Runs git add + git commit with the patch message
  4. Recreates branch structure

โš ๏ธ EXPERIMENTAL โ€” Export may produce incorrect Git history. See module-level documentation.