Package org.eclipse.jgit.pgm
Class Log
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.RevWalkTextBuiltin
-
- org.eclipse.jgit.pgm.Log
-
class Log extends RevWalkTextBuiltin
-
-
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.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
-
Fields inherited from class org.eclipse.jgit.pgm.RevWalkTextBuiltin
all, count, objects, outbuffer, parents, pathFilter, walk
-
-
Constructor Summary
Constructors Constructor Description Log()
-
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
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)
-
Methods inherited from class org.eclipse.jgit.pgm.RevWalkTextBuiltin
addAuthorRevFilter, addCMessageRevFilter, addCommitterRevFilter, createWalk, enableBoundary, enableDateOrder, enableReverse, enableTopoOrder, show, walkLoop
-
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
-
dateFormatter
private GitDateFormatter dateFormatter
-
diffFmt
private DiffFormatter diffFmt
-
allRefsByPeeledObjectId
private java.util.Map<AnyObjectId,java.util.Set<Ref>> allRefsByPeeledObjectId
-
noteMaps
private java.util.Map<java.lang.String,NoteMap> noteMaps
-
decorate
private boolean decorate
-
noStandardNotes
private boolean noStandardNotes
-
additionalNoteRefs
private java.util.List<java.lang.String> additionalNoteRefs
-
showPatch
boolean showPatch
-
detectRenames
private java.lang.Boolean detectRenames
-
renameLimit
private java.lang.Integer renameLimit
-
showNameAndStatusOnly
private boolean showNameAndStatusOnly
-
-
Method Detail
-
addAdditionalNoteRef
void addAdditionalNoteRef(java.lang.String notesRef)
-
dateFormat
void dateFormat(java.lang.String date)
-
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[])
.- Overrides:
run
in classRevWalkTextBuiltin
-
addNoteMap
private void addNoteMap(java.lang.String notesRef) throws java.io.IOException
- Throws:
java.io.IOException
-
show
protected void show(RevCommit c) throws java.lang.Exception
"Show" the current RevCommit when called from the main processing loop.Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.
- Specified by:
show
in classRevWalkTextBuiltin
- Parameters:
c
- The currentRevCommit
- Throws:
java.lang.Exception
-
showNotes
private boolean showNotes(RevCommit c) throws java.io.IOException
- Parameters:
c
-- Returns:
true
if at least one note was printed,false
otherwise- Throws:
java.io.IOException
-
showNotes
private boolean showNotes(RevCommit c, NoteMap map, java.lang.String label, boolean emptyLine) throws java.io.IOException
- Parameters:
c
-map
-label
-emptyLine
-- Returns:
true
if note was printed,false
otherwise- Throws:
java.io.IOException
-
showDiff
private void showDiff(RevCommit c) throws java.io.IOException
- Throws:
java.io.IOException
-
-