Structs§
- Failed
RefExport - A ref we failed to export to Git, along with the reason it failed.
- GitBranch
Push Targets - GitFetch
- Helper struct to execute multiple
git fetch
operations - GitImport
Stats - Describes changes made by
import_refs()
orfetch()
. - GitRef
Update - Progress
- Remote
Callbacks - Submodule
Config - Represents configuration from a submodule, e.g. in .gitmodules This doesn’t include all possible fields, only the ones we care about
- Unexpected
GitBackend Error
Enums§
- Failed
RefExport Reason - The reason we failed to export a ref to Git.
- GitConfig
Parse Error - GitExport
Error - GitFetch
Error - GitFetch
Prepare Error - GitImport
Error - GitPush
Error - GitRemote
Management Error - RefName
Constants§
- REMOTE_
NAME_ FOR_ LOCAL_ GIT_ REPO - Reserved remote name for the backing Git repo.
Functions§
- add_
remote - export_
refs - Export changes to branches made in the Jujutsu repo compared to our last
seen view of the Git repo in
mut_repo.view().git_refs()
. Returns a list of refs that failed to export. - 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_
reserved_ git_ remote_ ref - Returns true if the
parsed_ref
won’t be imported because its remote name is reserved. - 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 - parse_
gitmodules - 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