Uses of Class
org.eclipse.jgit.api.FetchCommand
Packages that use FetchCommand
-
Uses of FetchCommand in org.eclipse.jgit.api
Methods in org.eclipse.jgit.api that return FetchCommandModifier and TypeMethodDescriptionFetchCommand.addShallowExclude
(String shallowExclude) Deepens or shortens the history of a shallow repository to exclude commits reachable from a specified remote branch or tag.FetchCommand.addShallowExclude
(ObjectId shallowExclude) Creates a shallow clone with a history, excluding commits reachable from a specified remote branch or tag.Git.fetch()
Return a command object to execute aFetch
commandFetchCommand.setCallback
(FetchCommand.Callback callback) Register a progress callback.FetchCommand.setCheckFetchedObjects
(boolean checkFetchedObjects) If set totrue
, objects received will be checked for validityFetchCommand.setDepth
(int depth) Limits fetching to the specified number of commits from the tip of each remote branch history.FetchCommand.setDryRun
(boolean dryRun) Sets whether the fetch operation should be a dry runFetchCommand.setForceUpdate
(boolean force) Set fetch --force optionFetchCommand.setInitialBranch
(String branch) Set the initial branchFetchCommand.setProgressMonitor
(ProgressMonitor monitor) The progress monitor associated with the fetch operation.FetchCommand.setRecurseSubmodules
(SubmoduleConfig.FetchRecurseSubmodulesMode recurse) Set the mode to be used for recursing into submodules.FetchCommand.setRefSpecs
(String... specs) The ref specs to be used in the fetch operationFetchCommand.setRefSpecs
(List<RefSpec> specs) The ref specs to be used in the fetch operationFetchCommand.setRefSpecs
(RefSpec... specs) The ref specs to be used in the fetch operationThe remote (uri or name) used for the fetch operation.FetchCommand.setRemoveDeletedRefs
(boolean removeDeletedRefs) If set totrue
, refs are removed which no longer exist in the sourceFetchCommand.setShallowSince
(Instant shallowSince) Deepens or shortens the history of a shallow repository to include all reachable commits after a specified time.FetchCommand.setShallowSince
(OffsetDateTime shallowSince) Deepens or shortens the history of a shallow repository to include all reachable commits after a specified time.Sets the specification of annotated tag behavior during fetchFetchCommand.setThin
(boolean thinPack) Sets the thin-pack preference for fetch operation.FetchCommand.setUnshallow
(boolean unshallow) If the source repository is complete, converts a shallow repository to a complete one, removing all the limitations imposed by shallow repositories.