Top Description Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Status

extends TextBuiltin
Class Inheritance
Annotations
@Command
usage:usage_Status
common:true
Imports
java.io.IOException, java.text.MessageFormat, java.util.ArrayList, .Collection, .Collections, .List, .Map, .TreeSet, org.eclipse.jgit.api.Git, .StatusCommand, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.errors.NoWorkTreeException, org.eclipse.jgit.lib.Constants, .IndexDiff.StageState, .Ref, .Repository, org.eclipse.jgit.pgm.internal.CLIText, org.eclipse.jgit.pgm.opt.UntrackedFilesHandler, org.kohsuke.args4j.Argument, .Option, org.kohsuke.args4j.spi.RestOfArgumentsHandler

Status command

Field Summary

Modifier and TypeField and Description
protected List<String>
protected boolean
protected final String
protected final String
protected final String
protected String
Inherited from org.eclipse.jgit.pgm.TextBuiltin:
argWalkdberrserrwgitdirinsoutsoutw

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static String
protected int

Returns:

size of the list
printList
(Collection<String>
a Collection object.
list
)

Print String list

protected int

Returns:

a int.
printList
(String
a String object.
status1
,
String
a String object.
status2
,
String
a String object.
status3
,
Collection<String>
a Collection object.
list
,
Collection<String>
a Collection object.
set1
,
Collection<String>
a Collection object.
set2
,
Collection<String>
a Collection object.
set3
)

Print String list

private void
private void
printPorcelainLine(char x, char y, String path)

private void
protected void
printSectionHeader(String
a String object.
pattern
,
Object...
a Object object.
arguments
)

Print section header

private void
private void
protected void
run()

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

Perform the actions of this command.

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

Field Detail

filterPathsback to summary
protected List<String> filterPaths
Annotations
@Argument
required:false
index:0
metaVar:metaVar_paths
@Option
name:--
metaVar:metaVar_paths
handler:RestOfArgumentsHandler
porcelainback to summary
protected boolean porcelain
Annotations
@Option
name:--porcelain
usage:usage_machineReadableOutput
statusFileListFormatback to summary
protected final String statusFileListFormat
statusFileListFormatUnmergedback to summary
protected final String statusFileListFormatUnmerged
statusFileListFormatWithPrefixback to summary
protected final String statusFileListFormatWithPrefix
untrackedFilesModeback to summary
protected String untrackedFilesMode
Annotations
@Option
name:--untracked-files
aliases:-u, -uno, -uall
usage:usage_untrackedFilesMode
handler:UntrackedFilesHandler

Constructor Detail

Statusback to summary
pack-priv Status()

Method Detail

getStageStateDescriptionback to summary
private static String getStageStateDescription(IndexDiff.StageState stageState)
printListback to summary
protected int printList(Collection<String> list) throws IOException

Print String list

Parameters
list:Collection<String>

a Collection object.

Returns:int

size of the list

Exceptions
IOException:
if an IO error occurred
printListback to summary
protected int printList(String status1, String status2, String status3, Collection<String> list, Collection<String> set1, Collection<String> set2, Collection<String> set3) throws IOException

Print String list

Parameters
status1:String

a String object.

status2:String

a String object.

status3:String

a String object.

list:Collection<String>

a Collection object.

set1:Collection<String>

a Collection object.

set2:Collection<String>

a Collection object.

set3:Collection<String>

a Collection object.

Returns:int

a int.

Exceptions
IOException:
if an IO error occurred
printLongStatusback to summary
private void printLongStatus(Status status) throws IOException
printPorcelainLineback to summary
private void printPorcelainLine(char x, char y, String path) throws IOException
printPorcelainStatusback to summary
private void printPorcelainStatus(Status status) throws IOException
printSectionHeaderback to summary
protected void printSectionHeader(String pattern, Object... arguments) throws IOException

Print section header

Parameters
pattern:String

a String object.

arguments:Object[]

a Object object.

Exceptions
IOException:
if an IO error occurred
printStatusback to summary
private void printStatus(Status status) throws IOException
printUnmergedback to summary
private void printUnmerged(Map<String, IndexDiff.StageState> unmergedStates) throws IOException
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