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.opt | |
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
Modifier and Type | Method and Description |
---|---|
List<RefSpec> |
FetchCommand.getRefSpecs()
Get list of
RefSpec s |
List<RefSpec> |
PushCommand.getRefSpecs()
Get
RefSpec s. |
Modifier and Type | Method and Description |
---|---|
FetchCommand |
FetchCommand.setRefSpecs(RefSpec... specs)
The ref specs to be used in the fetch operation
|
PushCommand |
PushCommand.setRefSpecs(RefSpec... specs)
The ref specs to be used in the push operation
|
Modifier and Type | Method and Description |
---|---|
FetchCommand |
FetchCommand.setRefSpecs(List<RefSpec> specs)
The ref specs to be used in the fetch operation
|
PushCommand |
PushCommand.setRefSpecs(List<RefSpec> specs)
The ref specs to be used in the push operation
|
Modifier and Type | Method and Description |
---|---|
protected static Set<RefSpec> |
HttpTestCase.mirror(String... refs)
Mirror refs
|
Modifier and Type | Method and Description |
---|---|
List<RefSpec> |
DefaultTypedConfigGetter.getRefSpecs(Config config,
String section,
String subsection,
String name)
|
List<RefSpec> |
TypedConfigGetter.getRefSpecs(Config config,
String section,
String subsection,
String name)
|
List<RefSpec> |
Config.getRefSpecs(String section,
String subsection,
String name)
Parse a list of
RefSpec s from the
configuration. |
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 | Method and Description |
---|---|
RefSpec |
RefSpec.expandFromDestination(Ref r)
Expand this specification to exactly match a ref.
|
RefSpec |
RefSpec.expandFromDestination(String r)
Expand this specification to exactly match a ref name.
|
RefSpec |
RefSpec.expandFromSource(Ref r)
Expand this specification to exactly match a ref.
|
RefSpec |
RefSpec.expandFromSource(String r)
Expand this specification to exactly match a ref name.
|
RefSpec |
RefSpec.setDestination(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(String source)
Create a new RefSpec with a different source name setting.
|
RefSpec |
RefSpec.setSourceDestination(String source,
String destination)
Create a new RefSpec with a different source/destination name setting.
|
Modifier and Type | Method and Description |
---|---|
List<RefSpec> |
RemoteConfig.getFetchRefSpecs()
Remembered specifications for fetching from a repository.
|
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.
|
boolean |
RemoteConfig.removeFetchRefSpec(RefSpec s)
Remove a fetch RefSpec from this remote.
|
boolean |
RemoteConfig.removePushRefSpec(RefSpec s)
Remove a push RefSpec from this remote.
|
Modifier and Type | Method and Description |
---|---|
FetchResult |
Transport.fetch(ProgressMonitor monitor,
Collection<RefSpec> toFetch)
Fetch objects and refs from the remote repository to the local one.
|
FetchResult |
Transport.fetch(ProgressMonitor monitor,
Collection<RefSpec> toFetch,
String branch)
Fetch objects and refs from the remote repository to the local one.
|
Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Collection<RefSpec> specs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Collection<RefSpec> specs,
Map<String,RefLeaseSpec> leases)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
Collection<RefSpec> specs,
Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
Collection<RefSpec> specs,
Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
Collection<RefSpec> specs,
Map<String,RefLeaseSpec> leases,
Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
static Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
Collection<RefSpec> specs,
Map<String,RefLeaseSpec> leases,
Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form to
RemoteRefUpdate . |
FetchConnection |
TransportGitSsh.openFetch(Collection<RefSpec> refSpecs,
String... additionalPatterns) |
FetchConnection |
TransportHttp.openFetch(Collection<RefSpec> refSpecs,
String... additionalPatterns) |
FetchConnection |
Transport.openFetch(Collection<RefSpec> refSpecs,
String... additionalPatterns)
Begins a new connection for fetching from the remote repository.
|
void |
RemoteConfig.setFetchRefSpecs(List<RefSpec> specs)
Override existing fetch specifications with new ones.
|
void |
RemoteConfig.setPushRefSpecs(List<RefSpec> specs)
Override existing push specifications with new ones.
|
Copyright © 2021 Eclipse JGit Project. All rights reserved.