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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<AnyObjectId,
Set<Ref>> private GpgConfig
private GitDateFormatter
private boolean
private Boolean
private DiffFormatter
private boolean
private Integer
private boolean
(package private) boolean
private boolean
private GpgSignatureVerifier
Fields inherited from class org.eclipse.jgit.pgm.RevWalkTextBuiltin
all, count, objects, outbuffer, parents, pathFilter, walk
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
abbrev
(boolean on) (package private) void
abbrev
(int lines) (package private) void
addAdditionalNoteRef
(String notesRef) private void
addNoteMap
(String notesRef) (package private) void
dateFormat
(String date) (package private) void
(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, 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" the current RevCommit when called from the main processing loop.private void
private boolean
private boolean
private void
(package private) void
sourcePrefix
(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 Details
-
dateFormatter
-
diffFmt
-
allRefsByPeeledObjectId
-
noteMaps
-
decorate
private boolean decorate -
noStandardNotes
private boolean noStandardNotes -
additionalNoteRefs
-
showSignature
private boolean showSignature -
showPatch
boolean showPatch -
detectRenames
-
renameLimit
-
showNameAndStatusOnly
private boolean showNameAndStatusOnly -
verifier
-
config
-
-
Constructor Details
-
Log
Log()
-
-
Method Details
-
addAdditionalNoteRef
-
dateFormat
-
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
-
dstPrefix
-
noPrefix
void noPrefix(boolean on) -
init
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
- Throws:
IOException
-
show
"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:
Exception
-
showSignature
- Throws:
IOException
-
showNotes
- Parameters:
c
-- Returns:
true
if at least one note was printed,false
otherwise- Throws:
IOException
-
showNotes
private boolean showNotes(RevCommit c, NoteMap map, String label, boolean emptyLine) throws IOException - Parameters:
c
-map
-label
-emptyLine
-- Returns:
true
if note was printed,false
otherwise- Throws:
IOException
-
showDiff
- Throws:
IOException
-