Structs§
- Expanded
Fetch RefSpecs - Represents the refspecs to fetch from a remote
- 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 - Ignored
Refspec - A fetch refspec configured within a remote that was ignored during expansion.
- Ignored
Refspecs - A list of fetch refspecs configured within a remote that were ignored during a expansion. Callers should consider displaying these in the UI as appropriate.
- Progress
- Remote
Callbacks - Unexpected
GitBackend Error
Enums§
- Failed
RefExport Reason - The reason we failed to export a ref to Git.
- Fetch
Tags Override - Allows temporarily overriding the behavior of a single
git fetch
operation as to whether tags are fetched - GitDefault
Refspec Error - 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 - expand_
default_ fetch_ refspecs - Expand the remote’s configured fetch refspecs
- expand_
fetch_ refspecs - Expand a list of branch string patterns to refspecs to fetch
- 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.