## Uses of Class
org.eclipse.jgit.transport.RefSpec

Packages that use RefSpec
org.eclipse.jgit.api: High-level API commands (the porcelain of JGit).
org.eclipse.jgit.transport: Transport (fetch/push) for different protocols.

### Uses of RefSpec in org.eclipse.jgit.api

Methods in org.eclipse.jgit.api that return types with arguments of type RefSpec
`List<RefSpec>` PushCommand.`getRefSpecs()`
`List<RefSpec>` FetchCommand.`getRefSpecs()`

Methods in org.eclipse.jgit.api with parameters of type RefSpec
`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

Method parameters in org.eclipse.jgit.api with type arguments of type RefSpec
`PushCommand` PushCommand.`setRefSpecs(List<RefSpec> specs)` The ref specs to be used in the push operation
`FetchCommand` FetchCommand.`setRefSpecs(List<RefSpec> specs)` The ref specs to be used in the fetch operation

### Uses of RefSpec in org.eclipse.jgit.transport

Fields in org.eclipse.jgit.transport declared as RefSpec
`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.

Methods in org.eclipse.jgit.transport that return RefSpec
`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.

Methods in org.eclipse.jgit.transport that return types with arguments of type RefSpec
`List<RefSpec>` RemoteConfig.`getFetchRefSpecs()` Remembered specifications for fetching from a repository.
`List<RefSpec>` RemoteConfig.`getPushRefSpecs()` Remembered specifications for pushing to a repository.

Methods in org.eclipse.jgit.transport with parameters of type RefSpec
`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.

Method parameters in org.eclipse.jgit.transport with type arguments of type RefSpec
`FetchResult` Transport.`fetch(ProgressMonitor monitor, Collection<RefSpec> toFetch)` 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`.
`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`.
`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.