Skip to main content

Crate suture_git_bridge

Crate suture_git_bridge 

Source
Expand description

§⚠️ EXPERIMENTAL — Known Data Loss Issues

This module is not ready for production use. Known issues include:

  • Branch import is a no-op (branches are detected but not created in Suture)
  • Commit topology is linearized (merge commits become sequential patches)
  • File contents for intermediate commits may be incorrect
  • Rename detection parses tab-separated paths incorrectly

Use at your own risk. Data imported via this bridge may be incomplete or incorrect.


Git-Suture interop bridge.

Provides bidirectional import/export between Suture and Git repositories.

§Git → Suture Import

  • Walks a Git repository’s commit history
  • Creates equivalent Suture patches for each Git commit
  • Preserves branch structure, merge commits, and file contents

§Suture → Git Export

  • Walks a Suture repository’s patch DAG
  • Creates equivalent Git commits
  • Preserves branch structure and file contents

Structs§

ExportResult
Result of a Git export operation.
ImportResult
Result of a Git import operation.

Enums§

BridgeError

Functions§

export_to_gitDeprecated
Export a Suture repository to a Git repository.
import_from_gitDeprecated
Import a Git repository into a Suture repository.