Module git

Source

Structs§

FailedRefExport
A ref we failed to export to Git, along with the reason it failed.
GitBranchPushTargets
GitFetch
Helper struct to execute multiple git fetch operations
GitImportStats
Describes changes made by import_refs() or fetch().
GitRefUpdate
Progress
RemoteCallbacks
SubmoduleConfig
Represents configuration from a submodule, e.g. in .gitmodules This doesn’t include all possible fields, only the ones we care about
UnexpectedGitBackendError

Enums§

FailedRefExportReason
The reason we failed to export a ref to Git.
GitConfigParseError
GitExportError
GitFetchError
GitFetchPrepareError
GitImportError
GitPushError
GitRemoteManagementError
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