Package org.eclipse.jgit.pgm
Class Status
java.lang.Object
org.eclipse.jgit.pgm.TextBuiltin
org.eclipse.jgit.pgm.Status
Status command
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringgetStageStateDescription(IndexDiff.StageState stageState) protected intprintList(String status1, String status2, String status3, Collection<String> list, Collection<String> set1, Collection<String> set2, Collection<String> set3) Print String listprotected intprintList(Collection<String> list) Print String listprivate voidprintLongStatus(Status status) private voidprintPorcelainLine(char x, char y, String path) private voidprintPorcelainStatus(Status status) protected voidprintSectionHeader(String pattern, Object... arguments) Print section headerprivate voidprintStatus(Status status) private voidprintUnmerged(Map<String, IndexDiff.StageState> unmergedStates) protected voidrun()Perform the actions of this command.Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
Field Details
-
statusFileListFormat
-
statusFileListFormatWithPrefix
-
statusFileListFormatUnmerged
-
porcelain
protected boolean porcelain -
untrackedFilesMode
-
filterPaths
-
-
Constructor Details
-
Status
Status()
-
-
Method Details
-
run
protected void run()Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[]).- Specified by:
runin classTextBuiltin
-
printStatus
- Throws:
IOException
-
printPorcelainStatus
- Throws:
IOException
-
printPorcelainLine
- Throws:
IOException
-
printLongStatus
- Throws:
IOException
-
printSectionHeader
Print section header- Parameters:
pattern- aStringobject.arguments- aObjectobject.- Throws:
IOException
-
printList
Print String list- Parameters:
list- aCollectionobject.- Returns:
- a int.
- Throws:
IOException
-
printList
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- aStringobject.status2- aStringobject.status3- aStringobject.list- aCollectionobject.set1- aCollectionobject.set2- aCollectionobject.set3- aCollectionobject.- Returns:
- a int.
- Throws:
IOException
-
printUnmerged
- Throws:
IOException
-
getStageStateDescription
-