Structs§
- GitBranch
Push Targets - GitExport
Stats - Describes changes made by
export_refs()
. - GitFetch
- Helper struct to execute multiple
git fetch
operations - GitImport
Stats - Describes changes made by
import_refs()
orfetch()
. - GitPush
Stats - Stats from a git push
- GitRef
Update - Progress
- Remote
Callbacks - Unexpected
GitBackend Error
Enums§
- Failed
RefExport Reason - The reason we failed to export a ref to Git.
- GitExport
Error - GitFetch
Error - GitImport
Error - GitPush
Error - GitRef
Kind - Type of Git ref to be imported or exported.
- GitRemote
Management Error - GitRemote
Name Error - GitReset
Head Error
Constants§
- REMOTE_
NAME_ FOR_ LOCAL_ GIT_ REPO - Reserved remote name for the backing Git repo.
- RESERVED_
REMOTE_ REF_ NAMESPACE - Git ref prefix that would conflict with the reserved “git” remote.
Functions§
- add_
remote - export_
refs - Export changes to bookmarks made in the Jujutsu repo compared to our last
seen view of the Git repo in
mut_repo.view().git_refs()
. - export_
some_ refs - get_
all_ remote_ names - Returns a sorted list of configured remote names.
- get_
git_ backend - Returns the underlying
GitBackend
implementation. - get_
git_ repo - Returns new thread-local instance to access to the underlying Git repo.
- import_
head - Imports HEAD from the underlying Git repo.
- import_
refs - Reflect changes made in the underlying Git repo in the Jujutsu repo.
- import_
some_ refs - Reflect changes made in the underlying Git repo in the Jujutsu repo.
- is_
special_ git_ remote - Determine, by its name, if a remote refers to the special local-only “git” remote that is used in the Git backend.
- parse_
git_ ref - Translates Git ref name to jj’s
name@remote
symbol. ReturnsNone
if the ref cannot be represented in jj. - push_
branches - Pushes the specified branches and updates the repo view accordingly.
- push_
updates - Pushes the specified Git refs without updating the repo view.
- remove_
remote - rename_
remote - reset_
head - Sets Git HEAD to the parent of the given working-copy commit and resets the Git index.
- set_
remote_ url - update_
intent_ to_ add - Diff
old_tree
tonew_tree
and mark added files as intent-to-add in the Git index. Also removes current intent-to-add entries in the index if they were removed in the diff.