Package org.eclipse.jgit.transport
Class FetchProcess
java.lang.Object
org.eclipse.jgit.transport.FetchProcess
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet of refs we will actually wind up asking to obtain.private FetchConnectionprivate final ArrayList<FetchHeadRecord>Records to be recorded into FETCH_HEAD.Objects we know we have locally.private final ArrayList<TrackingRefUpdate>Updates to local tracking branches (if any).private final Collection<RefSpec>List of things we want to fetch from the remote repository.private final TransportTransport we will fetch over. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddUpdateBatchCommands(FetchResult result, BatchRefUpdate batch) private booleanprivate voidcloseConnection(FetchResult result) private TrackingRefUpdatecreateUpdate(RefSpec spec, ObjectId newId) private voiddeleteStaleTrackingRefs(FetchResult result, BatchRefUpdate batch) private voiddeleteTrackingRef(FetchResult result, BatchRefUpdate batch, RefSpec spec, Ref localRef) (package private) voidexecute(ProgressMonitor monitor, FetchResult result, String initialBranch) private voidexecuteImp(ProgressMonitor monitor, FetchResult result, String initialBranch) private Collection<Ref>private voidprivate voidexpandSingle(RefSpec spec, Set<Ref> matched) private voidexpandWildcard(RefSpec spec, Set<Ref> matched) private voidfetchObjects(ProgressMonitor monitor) private static Stringprivate booleanisInitialBranchMissing(Map<String, Ref> refsMap, String initialBranch) private static booleanprivate static booleanprivate booleanprivate voidprivate voidprivate voidprivate voidupdateFETCH_HEAD(FetchResult result) private voidprivate voidprivate void
-
Field Details
-
transport
Transport we will fetch over. -
toFetch
List of things we want to fetch from the remote repository. -
askFor
Set of refs we will actually wind up asking to obtain. -
have
Objects we know we have locally. -
localUpdates
Updates to local tracking branches (if any). -
fetchHeadUpdates
Records to be recorded into FETCH_HEAD. -
packLocks
-
conn
-
localRefs
-
-
Constructor Details
-
FetchProcess
FetchProcess(Transport t, Collection<RefSpec> f)
-
-
Method Details
-
execute
void execute(ProgressMonitor monitor, FetchResult result, String initialBranch) throws NotSupportedException, TransportException -
isInitialBranchMissing
-
executeImp
private void executeImp(ProgressMonitor monitor, FetchResult result, String initialBranch) throws NotSupportedException, TransportException -
addUpdateBatchCommands
private void addUpdateBatchCommands(FetchResult result, BatchRefUpdate batch) throws TransportException - Throws:
TransportException
-
fetchObjects
- Throws:
TransportException
-
closeConnection
-
reopenConnection
-
removeTrackingRefUpdate
-
removeFetchHeadRecord
-
updateFETCH_HEAD
- Throws:
IOException
-
askForIsComplete
- Throws:
TransportException
-
expandWildcard
- Throws:
TransportException
-
expandSingle
- Throws:
TransportException
-
localHasObject
- Throws:
TransportException
-
expandAutoFollowTags
- Throws:
TransportException
-
expandFetchTags
- Throws:
TransportException
-
wantTag
- Throws:
TransportException
-
want
- Throws:
TransportException
-
want
-
createUpdate
- Throws:
TransportException
-
localRefs
- Throws:
TransportException
-
deleteStaleTrackingRefs
- Throws:
IOException
-
deleteTrackingRef
private void deleteTrackingRef(FetchResult result, BatchRefUpdate batch, RefSpec spec, Ref localRef) -
isTag
-
isTag
-
getFirstFailedRefName
-