Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.junit.http | |
org.eclipse.jgit.lib |
Core API for repository, config, refs, object database.
|
org.eclipse.jgit.pgm | |
org.eclipse.jgit.pgm.opt | |
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<RefSpec> |
PushCommand.refSpecs |
private java.util.List<RefSpec> |
FetchCommand.refSpecs |
Modifier and Type | Method and Description |
---|---|
private java.util.List<RefSpec> |
FetchCommand.applyOptions(java.util.List<RefSpec> refSpecs2) |
private java.util.List<RefSpec> |
CloneCommand.calculateRefSpecs(CloneCommand.FETCH_TYPE type,
java.lang.String remoteName) |
java.util.List<RefSpec> |
PushCommand.getRefSpecs()
Get
RefSpec s. |
java.util.List<RefSpec> |
FetchCommand.getRefSpecs()
Get list of
RefSpec s |
Modifier and Type | Method and Description |
---|---|
PushCommand |
PushCommand.setRefSpecs(RefSpec... specs)
The ref specs to be used in the push operation
|
FetchCommand |
FetchCommand.setRefSpecs(RefSpec... specs)
The ref specs to be used in the fetch operation
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<RefSpec> |
FetchCommand.applyOptions(java.util.List<RefSpec> refSpecs2) |
PushCommand |
PushCommand.setRefSpecs(java.util.List<RefSpec> specs)
The ref specs to be used in the push operation
|
FetchCommand |
FetchCommand.setRefSpecs(java.util.List<RefSpec> specs)
The ref specs to be used in the fetch operation
|
Modifier and Type | Method and Description |
---|---|
protected static java.util.Set<RefSpec> |
HttpTestCase.mirror(java.lang.String... refs)
Mirror refs
|
Modifier and Type | Method and Description |
---|---|
java.util.List<RefSpec> |
TypedConfigGetter.getRefSpecs(Config config,
java.lang.String section,
java.lang.String subsection,
java.lang.String name)
|
java.util.List<RefSpec> |
DefaultTypedConfigGetter.getRefSpecs(Config config,
java.lang.String section,
java.lang.String subsection,
java.lang.String name)
|
java.util.List<RefSpec> |
Config.getRefSpecs(java.lang.String section,
java.lang.String subsection,
java.lang.String name)
Parse a list of
RefSpec s from the
configuration. |
Modifier and Type | Field and Description |
---|---|
private java.util.List<RefSpec> |
Push.refSpecs |
private java.util.List<RefSpec> |
Fetch.toget |
Constructor and Description |
---|
RefSpecHandler(org.kohsuke.args4j.CmdLineParser parser,
org.kohsuke.args4j.OptionDef option,
org.kohsuke.args4j.spi.Setter<? super RefSpec> setter)
Create a new handler for the command name.
|
Modifier and Type | Field and Description |
---|---|
static RefSpec |
Transport.REFSPEC_PUSH_ALL
Specification for push operation, to push all refs under refs/heads.
|
static RefSpec |
Transport.REFSPEC_TAGS
Specification for fetch or push operations, to fetch or push all tags.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<RefSpec> |
RemoteConfig.fetch |
private java.util.List<RefSpec> |
Transport.fetch
Specifications to apply during fetch.
|
private java.util.List<RefSpec> |
RemoteConfig.push |
private java.util.List<RefSpec> |
Transport.push
Specifications to apply during push.
|
private java.util.Collection<RefSpec> |
FetchProcess.toFetch
List of things we want to fetch from the remote repository.
|
Modifier and Type | Method and Description |
---|---|
RefSpec |
RefSpec.expandFromDestination(Ref r)
Expand this specification to exactly match a ref.
|
RefSpec |
RefSpec.expandFromDestination(java.lang.String r)
Expand this specification to exactly match a ref name.
|
private RefSpec |
RefSpec.expandFromDstImp(java.lang.String name) |
RefSpec |
RefSpec.expandFromSource(Ref r)
Expand this specification to exactly match a ref.
|
RefSpec |
RefSpec.expandFromSource(java.lang.String r)
Expand this specification to exactly match a ref name.
|
private RefSpec |
RefSpec.expandFromSourceImp(java.lang.String name) |
RefSpec |
RefSpec.setDestination(java.lang.String destination)
Create a new RefSpec with a different destination name setting.
|
RefSpec |
RefSpec.setForceUpdate(boolean forceUpdate)
Create a new RefSpec with a different force update setting.
|
RefSpec |
RefSpec.setSource(java.lang.String source)
Create a new RefSpec with a different source name setting.
|
RefSpec |
RefSpec.setSourceDestination(java.lang.String source,
java.lang.String destination)
Create a new RefSpec with a different source/destination name setting.
|
Modifier and Type | Method and Description |
---|---|
private static java.util.Collection<RefSpec> |
Transport.expandPushWildcardsFor(Repository db,
java.util.Collection<RefSpec> specs) |
java.util.List<RefSpec> |
RemoteConfig.getFetchRefSpecs()
Remembered specifications for fetching from a repository.
|
java.util.List<RefSpec> |
RemoteConfig.getPushRefSpecs()
Remembered specifications for pushing to a repository.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RemoteConfig.addFetchRefSpec(RefSpec s)
Add a new fetch RefSpec to this remote.
|
boolean |
RemoteConfig.addPushRefSpec(RefSpec s)
Add a new push RefSpec to this remote.
|
private TrackingRefUpdate |
FetchProcess.createUpdate(RefSpec spec,
ObjectId newId) |
private void |
FetchProcess.deleteTrackingRef(FetchResult result,
BatchRefUpdate batch,
RefSpec spec,
Ref localRef) |
private void |
FetchProcess.expandSingle(RefSpec spec,
java.util.Set<Ref> matched) |
private void |
FetchProcess.expandWildcard(RefSpec spec,
java.util.Set<Ref> matched) |
boolean |
RemoteConfig.removeFetchRefSpec(RefSpec s)
Remove a fetch RefSpec from this remote.
|
boolean |
RemoteConfig.removePushRefSpec(RefSpec s)
Remove a push RefSpec from this remote.
|
private void |
FetchProcess.want(Ref src,
RefSpec spec) |
Modifier and Type | Method and Description |
---|---|
private static java.util.Collection<RefSpec> |
Transport.expandPushWildcardsFor(Repository db,
java.util.Collection<RefSpec> specs) |
FetchResult |
Transport.fetch(ProgressMonitor monitor,
java.util.Collection<RefSpec> toFetch)
Fetch objects and refs from the remote repository to the local one.
|
java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(java.util.Collection<RefSpec> specs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(java.util.Collection<RefSpec> specs,
java.util.Map<java.lang.String,RefLeaseSpec> leases)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
java.util.Collection<RefSpec> specs,
java.util.Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
java.util.Collection<RefSpec> specs,
java.util.Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
java.util.Collection<RefSpec> specs,
java.util.Map<java.lang.String,RefLeaseSpec> leases,
java.util.Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
java.util.Collection<RefSpec> specs,
java.util.Map<java.lang.String,RefLeaseSpec> leases,
java.util.Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
private static java.lang.String |
Transport.findTrackingRefName(java.lang.String remoteName,
java.util.Collection<RefSpec> fetchSpecs) |
void |
RemoteConfig.setFetchRefSpecs(java.util.List<RefSpec> specs)
Override existing fetch specifications with new ones.
|
void |
RemoteConfig.setPushRefSpecs(java.util.List<RefSpec> specs)
Override existing push specifications with new ones.
|
Constructor and Description |
---|
RefSpec(RefSpec p) |
Constructor and Description |
---|
FetchProcess(Transport t,
java.util.Collection<RefSpec> f) |