Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class LsRemote

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_LsRemote
Imports
java.io.IOException, java.util.TreeSet, org.eclipse.jgit.api.Git, .LsRemoteCommand, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.lib.AnyObjectId, .Ref, org.kohsuke.args4j.Argument, .Option

Field Summary

Modifier and TypeField and Description
private boolean
private String
private boolean
private boolean
pack-priv int
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected boolean
requiresRepository()

Overrides org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

If this command requires a repository.

protected void
run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

private void
private void
show(Ref ref, String name)

Inherited from org.eclipse.jgit.pgm.TextBuiltin:
abbreviateRefcontainsHelpdiediediedieexecutegetErrorWritergetOutputWritergetRepositorygetResourceBundleinitinitRawparseArgumentsprintUsageprintUsageAndExitprintUsageAndExitresolvesetCommandName

Field Detail

headsback to summary
private boolean heads
Annotations
@Option
name:--heads
usage:usage_lsRemoteHeads
remoteback to summary
private String remote
Annotations
@Argument
index:0
metaVar:metaVar_uriish
required:true
symrefback to summary
private boolean symref
Annotations
@Option
name:--symref
usage:usage_lsRemoteSymref
tagsback to summary
private boolean tags
Annotations
@Option
name:--tags
usage:usage_lsRemoteTags
aliases:-t
timeoutback to summary
pack-priv int timeout
Annotations
@Option
name:--timeout
metaVar:metaVar_service
usage:usage_abortConnectionIfNoActivity

Constructor Detail

LsRemoteback to summary
pack-priv LsRemote()

Method Detail

requiresRepositoryback to summary
protected boolean requiresRepository()

Overrides org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

Doc from org.eclipse.jgit.pgm.TextBuiltin.requiresRepository.

If this command requires a repository.

Returns:boolean

true if db/getRepository() is required

Annotations
@Override
runback to summary
protected void run()

Implements abstract org.eclipse.jgit.pgm.TextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@Override
showback to summary
private void show(AnyObjectId id, String name) throws IOException
showback to summary
private void show(Ref ref, String name) throws IOException