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. Borrows
from the input ref name. Ported from jj’s
RemoteRefSymbolshape (lib/src/git.rs). - 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 kind of Git ref
parse_git_refrecognizes. Ported from jj’sGitRefKind(lib/src/git.rs). - Write
Through Outcome - Write
Through Skip Reason
Constants§
- REMOTE_
NAME_ FOR_ LOCAL_ GIT_ REPO - Sentinel remote name for refs owned by the local repository
(
refs/heads/*andrefs/tags/*). Ported from jj’sREMOTE_NAME_FOR_LOCAL_GIT_REPO(lib/src/git.rs). Because a remote literally namedgitwould collide with this sentinel, such a name must be rejected when remotes are configured.
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 namespaces (e.g.refs/notes/*,HEAD).
Type Aliases§
- GitResult
- Type alias for Git bridge results.