pub fn export_to_git<S: Store, H: BuildHasher>(
panproto_store: &S,
git_repo: &Repository,
commit_id: ObjectId,
parent_map: &HashMap<ObjectId, Oid, H>,
) -> Result<ExportResult, GitBridgeError>Expand description
Export a panproto-vcs commit as a git commit.
Loads the schema from the panproto commit and serializes it into the git tree.
If a parent_map is provided (mapping panproto parent commit IDs to git OIDs),
the exported git commit will have the correct parent pointers, preserving the
DAG structure.
The schema is stored as a JSON file in the git tree. This is the authoritative representation; source text reconstruction requires re-parsing with the appropriate language parser.
§Errors
Returns GitBridgeError if VCS operations or git operations fail.