Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Init

extends TextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_CreateAnEmptyGitRepository
Imports
java.io.File, .IOException, java.text.MessageFormat, org.eclipse.jgit.api.Git, .InitCommand, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.lib.Repository, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.util.StringUtils, org.kohsuke.args4j.Argument, .Option

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
Init()

Method Summary

Modifier and TypeMethod and Description
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

Field Detail

bareback to summary
private boolean bare
Annotations
@Option
name:--bare
usage:usage_CreateABareRepository
branchback to summary
private String branch
Annotations
@Option
name:--initial-branch
aliases:-b
metaVar:metaVar_branchName
usage:usage_initialBranch
directoryback to summary
private String directory
Annotations
@Argument
index:0
metaVar:metaVar_directory

Constructor Detail

Initback to summary
pack-priv Init()

Method Detail

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