Skip to main content
The CleanupService provides methods for cleaning up repositories after operations like BFG Repo-Cleaner.

ApplyBfgObjectMapStream

Applies a BFG object map to update references after repository rewriting.

Request (Stream)

repository
Repository
required
The repository to apply the object map to. Only available in the first message.
object_map
bytes
Raw object-map file data as generated by BFG Repo-Cleaner. Each line contains two space-separated object SHAs: the original SHA and the SHA after BFG rewrote the object.

Response (Stream)

entries
Entry[]
Array of parsed entries from the object map

Entry

type
ObjectType
The type of Git object (commit, tree, blob, tag)
old_oid
string
The original object ID before rewriting
new_oid
string
The new object ID after rewriting

Build docs developers (and LLMs) love