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 FetchConnection
private 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 Transport
Transport we will fetch over. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addUpdateBatchCommands
(FetchResult result, BatchRefUpdate batch) private boolean
private void
closeConnection
(FetchResult result) private TrackingRefUpdate
createUpdate
(RefSpec spec, ObjectId newId) private void
deleteStaleTrackingRefs
(FetchResult result, BatchRefUpdate batch) private void
deleteTrackingRef
(FetchResult result, BatchRefUpdate batch, RefSpec spec, Ref localRef) (package private) void
execute
(ProgressMonitor monitor, FetchResult result, String initialBranch) private void
executeImp
(ProgressMonitor monitor, FetchResult result, String initialBranch) private Collection
<Ref> private void
private void
expandSingle
(RefSpec spec, Set<Ref> matched) private void
expandWildcard
(RefSpec spec, Set<Ref> matched) private void
fetchObjects
(ProgressMonitor monitor) private static String
private boolean
isInitialBranchMissing
(Map<String, Ref> refsMap, String initialBranch) private static boolean
private static boolean
private boolean
private void
private void
private void
private void
updateFETCH_HEAD
(FetchResult result) private void
private void
private 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
-