class Show extends TextBuiltin
TextBuiltin.TerminatedByHelpException
Modifier and Type | Field and 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 |
Constructor and Description |
---|
Show() |
Modifier and Type | Method and 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) |
(package private) void |
sourcePrefix(java.lang.String path) |
(package private) void |
unified(int lines) |
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
private final java.util.TimeZone myTZ
private final java.text.DateFormat fmt
private DiffFormatter diffFmt
private java.lang.String objectName
protected TreeFilter pathFilter
boolean showPatch
private java.lang.Boolean detectRenames
private java.lang.Integer renameLimit
private boolean showNameAndStatusOnly
void noRenames(boolean on)
void ignoreSpaceAtEol(boolean on)
void ignoreLeadingSpace(boolean on)
void ignoreSpaceChange(boolean on)
void ignoreAllSpace(boolean on)
void unified(int lines)
void abbrev(int lines)
void abbrev(boolean on)
void sourcePrefix(java.lang.String path)
void dstPrefix(java.lang.String path)
void noPrefix(boolean on)
protected void init(Repository repository, java.lang.String gitDir)
init
in class TextBuiltin
repository
- the opened repository that the command should work on.gitDir
- value of the --git-dir
command line option, if
repository
is null.protected void run()
This method should only be invoked by TextBuiltin.execute(String[])
.
run
in class TextBuiltin
private void show(RevTag tag) throws java.io.IOException
java.io.IOException
private void show(RevTree obj) throws MissingObjectException, IncorrectObjectTypeException, CorruptObjectException, java.io.IOException
MissingObjectException
IncorrectObjectTypeException
CorruptObjectException
java.io.IOException
private void show(RevWalk rw, RevCommit c) throws java.io.IOException
java.io.IOException
private void showDiff(RevCommit c) throws java.io.IOException
java.io.IOException