Skip to main content

Module import

Module import 

Source
Expand description

Import git repositories into panproto-vcs. Import git repositories into panproto-vcs.

Walks the git commit DAG topologically, parses each commit’s file tree into a panproto project schema, and creates panproto-vcs commits that preserve authorship, timestamps, and parent structure.

Structs§

ImportResult
Result of importing a git repository.

Enums§

BlobCacheLoadError
Error loading a blob-to-schema cache.

Constants§

BLOB_CACHE_FILE
Standard on-disk name of the blob-OID to FileSchema ObjectId cache.

Functions§

import_git_repo
Import a range of git commits into a panproto-vcs store.
import_git_repo_incremental
Incrementally import a range of git commits into a panproto-vcs store.
import_git_repo_persistent
Import a git repository, persisting the blob-to-schema cache under cache_dir/<BLOB_CACHE_FILE> so subsequent imports deduplicate unchanged files without re-parsing them.
import_git_repo_with_cache
Import a git repository using per-file content addressing.
load_blob_cache
Load a blob-to-schema cache from a plain-text file.
save_blob_cache
Persist a blob-to-schema cache atomically.

Type Aliases§

BlobSchemaCache
Cache mapping a (git blob OID, protocol) pair to the content-addressed ObjectId of the FileSchemaObject produced by parsing it.