class Log extends RevWalkTextBuiltin
TextBuiltin.TerminatedByHelpException| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
additionalNoteRefs |
private java.util.Map<AnyObjectId,java.util.Set<Ref>> |
allRefsByPeeledObjectId |
private GitDateFormatter |
dateFormatter |
private boolean |
decorate |
private java.lang.Boolean |
detectRenames |
private DiffFormatter |
diffFmt |
private boolean |
noStandardNotes |
private java.util.Map<java.lang.String,NoteMap> |
noteMaps |
private java.lang.Integer |
renameLimit |
private boolean |
showNameAndStatusOnly |
(package private) boolean |
showPatch |
all, count, objects, outbuffer, parents, pathFilter, walk| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
abbrev(boolean on) |
(package private) void |
abbrev(int lines) |
(package private) void |
addAdditionalNoteRef(java.lang.String notesRef) |
private void |
addNoteMap(java.lang.String notesRef) |
(package private) void |
dateFormat(java.lang.String date) |
(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.
|
protected void |
show(RevCommit c)
"Show" the current RevCommit when called from the main processing loop.
|
private void |
showDiff(RevCommit c) |
private boolean |
showNotes(RevCommit c) |
private boolean |
showNotes(RevCommit c,
NoteMap map,
java.lang.String label,
boolean emptyLine) |
(package private) void |
sourcePrefix(java.lang.String path) |
(package private) void |
unified(int lines) |
addAuthorRevFilter, addCMessageRevFilter, addCommitterRevFilter, createWalk, enableBoundary, enableDateOrder, enableReverse, enableTopoOrder, show, walkLoopabbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandNameprivate GitDateFormatter dateFormatter
private DiffFormatter diffFmt
private java.util.Map<AnyObjectId,java.util.Set<Ref>> allRefsByPeeledObjectId
private java.util.Map<java.lang.String,NoteMap> noteMaps
private boolean decorate
private boolean noStandardNotes
private java.util.List<java.lang.String> additionalNoteRefs
boolean showPatch
private java.lang.Boolean detectRenames
private java.lang.Integer renameLimit
private boolean showNameAndStatusOnly
void addAdditionalNoteRef(java.lang.String notesRef)
void dateFormat(java.lang.String date)
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 TextBuiltinrepository - 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()
throws java.lang.Exception
This method should only be invoked by TextBuiltin.execute(String[]).
run in class RevWalkTextBuiltinjava.lang.Exception - an error occurred while processing the command. The main
framework will catch the exception and print a message on
standard error.private void addNoteMap(java.lang.String notesRef)
throws java.io.IOException
java.io.IOExceptionprotected void show(RevCommit c) throws java.lang.Exception
Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.
show in class RevWalkTextBuiltinc - The current RevCommitjava.lang.Exceptionprivate boolean showNotes(RevCommit c) throws java.io.IOException
c - true if at least one note was printed,
false otherwisejava.io.IOExceptionprivate boolean showNotes(RevCommit c, NoteMap map, java.lang.String label, boolean emptyLine) throws java.io.IOException
c - map - label - emptyLine - true if note was printed, false
otherwisejava.io.IOExceptionprivate void showDiff(RevCommit c) throws java.io.IOException
java.io.IOException