Package org.eclipse.jgit.pgm
Class Show
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.Show
-
class Show extends TextBuiltin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
detectRenames
private DiffFormatter
diffFmt
private java.text.DateFormat
fmt
private java.util.TimeZone
myTZ
private java.lang.String
objectName
protected TreeFilter
pathFilter
private java.lang.Integer
renameLimit
private boolean
showNameAndStatusOnly
(package private) boolean
showPatch
private boolean
showSignature
-
Constructor Summary
Constructors Constructor Description Show()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
abbrev(boolean on)
(package private) void
abbrev(int lines)
(package private) void
dstPrefix(java.lang.String path)
(package private) void
ignoreAllSpace(boolean on)
(package private) void
ignoreLeadingSpace(boolean on)
(package private) void
ignoreSpaceAtEol(boolean on)
(package private) void
ignoreSpaceChange(boolean on)
protected void
init(Repository repository, java.lang.String gitDir)
Initialize the command to work with a repository.(package private) void
noPrefix(boolean on)
(package private) void
noRenames(boolean on)
protected void
run()
Perform the actions of this command.private void
show(RevTag tag)
private void
show(RevTree obj)
private void
show(RevWalk rw, RevCommit c)
private void
showDiff(RevCommit c)
private void
showSignature(RevCommit c)
(package private) void
sourcePrefix(java.lang.String path)
(package private) void
unified(int lines)
-
Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
-
-
-
Field Detail
-
myTZ
private final java.util.TimeZone myTZ
-
fmt
private final java.text.DateFormat fmt
-
diffFmt
private DiffFormatter diffFmt
-
objectName
private java.lang.String objectName
-
pathFilter
protected TreeFilter pathFilter
-
showSignature
private boolean showSignature
-
showPatch
boolean showPatch
-
detectRenames
private java.lang.Boolean detectRenames
-
renameLimit
private java.lang.Integer renameLimit
-
showNameAndStatusOnly
private boolean showNameAndStatusOnly
-
-
Method Detail
-
noRenames
void noRenames(boolean on)
-
ignoreSpaceAtEol
void ignoreSpaceAtEol(boolean on)
-
ignoreLeadingSpace
void ignoreLeadingSpace(boolean on)
-
ignoreSpaceChange
void ignoreSpaceChange(boolean on)
-
ignoreAllSpace
void ignoreAllSpace(boolean on)
-
unified
void unified(int lines)
-
abbrev
void abbrev(int lines)
-
abbrev
void abbrev(boolean on)
-
sourcePrefix
void sourcePrefix(java.lang.String path)
-
dstPrefix
void dstPrefix(java.lang.String path)
-
noPrefix
void noPrefix(boolean on)
-
init
protected void init(Repository repository, java.lang.String gitDir)
Initialize the command to work with a repository.- Overrides:
init
in classTextBuiltin
- Parameters:
repository
- the opened repository that the command should work on.gitDir
- value of the--git-dir
command line option, ifrepository
is null.
-
run
protected void run()
Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in classTextBuiltin
-
show
private void show(RevTag tag) throws java.io.IOException
- Throws:
java.io.IOException
-
show
private void show(RevTree obj) throws MissingObjectException, IncorrectObjectTypeException, CorruptObjectException, java.io.IOException
- Throws:
MissingObjectException
IncorrectObjectTypeException
CorruptObjectException
java.io.IOException
-
show
private void show(RevWalk rw, RevCommit c) throws java.io.IOException
- Throws:
java.io.IOException
-
showDiff
private void showDiff(RevCommit c) throws java.io.IOException
- Throws:
java.io.IOException
-
showSignature
private void showSignature(RevCommit c) throws java.io.IOException
- Throws:
java.io.IOException
-
-