Expand description
Core Git bridge types and operations.
Structs§
- GitBridge
- Git bridge for Heddle repository.
- GitPull
Outcome - Negative
RefSpec - Parsed
GitRef - A parsed Git ref name: its kind, short name, and owning remote.
- RefSpec
- Sync
Mapping - Mapping between Heddle ChangeIds and Git commit object IDs.
Enums§
- GitBridge
Error - Errors specific to Git bridge operations.
- GitPush
Scope - GitRef
Kind - The wire-level kind used for hosted Git ref updates.
- Write
Through Outcome - Write
Through Skip Reason
Constants§
- REMOTE_
NAME_ FOR_ LOCAL_ GIT_ REPO - Sentinel remote name for refs owned by the local repository.
Functions§
- clone_
url_ to_ bare - Clone a remote git URL into
destas a bare repository, fetching all branches and tags. Mirrors the sley remote fetch path used byfetch_network_remotebut starts from an emptyinit_barerather than an existing repo. - copy_
local_ repo_ to_ bare - Copy a local Git repository into a bare repository without invoking Git
transport helpers. This is the local-path clone fast path used by the OSS
Git-overlay workflow when the user does not have
gitinstalled. - parse_
git_ ref - Parse a fully-qualified Git ref name into its
GitRefKind, short name, and owning remote. ReturnsNonefor refs outside the branch/remote-branch/tag/notes namespaces (e.g.HEAD).
Type Aliases§
- GitResult
- Type alias for Git bridge results.