Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Version

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_DisplayTheVersionOfJgit
Imports
java.io.IOException, .InputStream, java.net.URL, .URLClassLoader, java.text.MessageFormat, java.util.jar.JarFile, .Manifest, org.eclipse.jgit.pgm.internal.CLIText

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private String
private static String
private String
protected final 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.

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

Constructor Detail

Versionback to summary
pack-priv Version()

Method Detail

getBundleVersionback to summary
private String getBundleVersion()
getBundleVersionback to summary
private static String getBundleVersion(URL url)
getImplementationVersionback to summary
private String getImplementationVersion()
requiresRepositoryback to summary
protected final 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