Top Fields Constructors Methods
org.eclipse.jgit.pgm

pack-priv Class Log

extends RevWalkTextBuiltin
Class Inheritance
Annotations
@Command
common:true
usage:usage_viewCommitHistory
Imports
java.io.BufferedOutputStream, .IOException, java.text.MessageFormat, java.util.ArrayList, .Collection, .Iterator, .LinkedHashMap, .List, .Locale, .Map, .Set, org.eclipse.jgit.diff.DiffFormatter, .RawText, .RawTextComparator, .RenameDetector, org.eclipse.jgit.errors.LargeObjectException, org.eclipse.jgit.lib.AnyObjectId, .Constants, .GpgConfig, .SignatureVerifier.SignatureVerification, .ObjectId, .PersonIdent, .Ref, .Repository, .SignatureVerifiers, org.eclipse.jgit.notes.NoteMap, org.eclipse.jgit.pgm.internal.CLIText, .VerificationUtils, org.eclipse.jgit.revwalk.RevCommit, .RevTree, org.eclipse.jgit.util.GitDateFormatter, .GitDateFormatter.Format, org.kohsuke.args4j.Option

Field Summary

Modifier and TypeField and Description
private List<String>
private Map<AnyObjectId, Set<Ref>>
private GpgConfig
private GitDateFormatter
private boolean
private Boolean
private DiffFormatter
private boolean
private Map<String, NoteMap>
private Integer
private boolean
private boolean
pack-priv boolean
private boolean
Inherited from org.eclipse.jgit.pgm.RevWalkTextBuiltin:
allcountobjectsoutbufferparentspathFilterwalk

Constructor Summary

AccessConstructor and Description
pack-priv
Log()

Method Summary

Modifier and TypeMethod and Description
pack-priv void
abbrev(int lines)

pack-priv void
abbrev(boolean on)

pack-priv void
private void
addNoteMap(String notesRef)

pack-priv void
pack-priv void
pack-priv void
ignoreAllSpace(boolean on)

pack-priv void
ignoreLeadingSpace(boolean on)

pack-priv void
ignoreSpaceAtEol(boolean on)

pack-priv void
ignoreSpaceChange(boolean on)

protected void
init(Repository
the opened repository that the command should work on.
repository
,
String
value of the --git-dir command line option, if repository is null.
gitDir
)

Overrides org.eclipse.jgit.pgm.TextBuiltin.init.

Initialize the command to work with a repository.

pack-priv void
nameAndStatusOnly(boolean on)

pack-priv void
nameOnly(boolean on)

pack-priv void
noPrefix(boolean on)

pack-priv void
noRenames(boolean on)

protected void
run()

Overrides org.eclipse.jgit.pgm.RevWalkTextBuiltin.run.

Perform the actions of this command.

protected void
show(RevCommit c)

Implements abstract org.eclipse.jgit.pgm.RevWalkTextBuiltin.show.

"Show" the current RevCommit when called from the main processing loop.

private void
private boolean

Returns:

true if at least one note was printed, false otherwise
showNotes
(RevCommit
given commit
c
)

Show notes for given commit

private boolean

Returns:

true if note was printed, false otherwise
showNotes
(RevCommit
given commit
c
,
NoteMap
note map
map
,
String
label
label
,
boolean
whether to start with an empty line
emptyLine
)

private void
pack-priv void
pack-priv void
unified(int lines)

Inherited from org.eclipse.jgit.pgm.RevWalkTextBuiltin:
addAuthorRevFilteraddCMessageRevFilteraddCommitterRevFiltercreateWalkenableBoundaryenableDateOrderenableReverseenableTopoOrdershowwalkLoop

Field Detail

additionalNoteRefsback to summary
private List<String> additionalNoteRefs
allRefsByPeeledObjectIdback to summary
private Map<AnyObjectId, Set<Ref>> allRefsByPeeledObjectId
configback to summary
private GpgConfig config
dateFormatterback to summary
private GitDateFormatter dateFormatter
decorateback to summary
private boolean decorate
Annotations
@Option
name:--decorate
usage:usage_showRefNamesMatchingCommits
detectRenamesback to summary
private Boolean detectRenames
Annotations
@Option
name:-M
usage:usage_detectRenames
diffFmtback to summary
private DiffFormatter diffFmt
noStandardNotesback to summary
private boolean noStandardNotes
Annotations
@Option
name:--no-standard-notes
usage:usage_noShowStandardNotes
noteMapsback to summary
private Map<String, NoteMap> noteMaps
renameLimitback to summary
private Integer renameLimit
Annotations
@Option
name:-l
usage:usage_renameLimit
showNameAndStatusOnlyback to summary
private boolean showNameAndStatusOnly
showNameOnlyback to summary
private boolean showNameOnly
showPatchback to summary
pack-priv boolean showPatch
Annotations
@Option
name:-p
usage:usage_showPatch
showSignatureback to summary
private boolean showSignature
Annotations
@Option
name:--show-signature
usage:usage_showSignature

Constructor Detail

Logback to summary
pack-priv Log()

Method Detail

abbrevback to summary
pack-priv void abbrev(int lines)
Annotations
@Option
name:--abbrev
metaVar:metaVar_n
abbrevback to summary
pack-priv void abbrev(boolean on)
Annotations
@Option
name:--full-index
addAdditionalNoteRefback to summary
pack-priv void addAdditionalNoteRef(String notesRef)
Annotations
@Option
name:--show-notes
usage:usage_showNotes
metaVar:metaVar_ref
addNoteMapback to summary
private void addNoteMap(String notesRef) throws IOException
dateFormatback to summary
pack-priv void dateFormat(String date)
Annotations
@Option
name:--date
usage:usage_date
dstPrefixback to summary
pack-priv void dstPrefix(String path)
Annotations
@Option
name:--dst-prefix
usage:usage_dstPrefix
ignoreAllSpaceback to summary
pack-priv void ignoreAllSpace(boolean on)
Annotations
@Option
name:-w
aliases:--ignore-all-space
ignoreLeadingSpaceback to summary
pack-priv void ignoreLeadingSpace(boolean on)
Annotations
@Option
name:--ignore-leading-space
ignoreSpaceAtEolback to summary
pack-priv void ignoreSpaceAtEol(boolean on)
Annotations
@Option
name:--ignore-space-at-eol
ignoreSpaceChangeback to summary
pack-priv void ignoreSpaceChange(boolean on)
Annotations
@Option
name:-b
aliases:--ignore-space-change
initback to summary
protected void init(Repository repository, String gitDir)

Overrides org.eclipse.jgit.pgm.TextBuiltin.init.

Doc from org.eclipse.jgit.pgm.TextBuiltin.init.

Initialize the command to work with a repository.

Parameters
repository:Repository

the opened repository that the command should work on.

gitDir:String

value of the --git-dir command line option, if repository is null.

Annotations
@Override
nameAndStatusOnlyback to summary
pack-priv void nameAndStatusOnly(boolean on)
Annotations
@Option
name:--name-status
usage:usage_nameStatus
nameOnlyback to summary
pack-priv void nameOnly(boolean on)
Annotations
@Option
name:--name-only
usage:usage_nameOnly
noPrefixback to summary
pack-priv void noPrefix(boolean on)
Annotations
@Option
name:--no-prefix
usage:usage_noPrefix
noRenamesback to summary
pack-priv void noRenames(boolean on)
Annotations
@Option
name:--no-renames
usage:usage_noRenames
runback to summary
protected void run()

Overrides org.eclipse.jgit.pgm.RevWalkTextBuiltin.run.

Doc from org.eclipse.jgit.pgm.TextBuiltin.run.

Perform the actions of this command.

This method should only be invoked by execute(String[]).

Annotations
@Override
showback to summary
protected void show(RevCommit c) throws Exception

Implements abstract org.eclipse.jgit.pgm.RevWalkTextBuiltin.show.

Doc from org.eclipse.jgit.pgm.RevWalkTextBuiltin.show.

"Show" the current RevCommit when called from the main processing loop.

Implement this methods to define the behavior for subclasses of RevWalkTextBuiltin.

Parameters
c:RevCommit

The current org.eclipse.jgit.revwalk.RevCommit

Annotations
@Override
Exceptions
Exception:
if an error occurred
showDiffback to summary
private void showDiff(RevCommit c) throws IOException
showNotesback to summary
private boolean showNotes(RevCommit c) throws IOException

Show notes for given commit

Parameters
c:RevCommit

given commit

Returns:boolean

true if at least one note was printed, false otherwise

Exceptions
IOException:
if an IO error occurred
showNotesback to summary
private boolean showNotes(RevCommit c, NoteMap map, String label, boolean emptyLine) throws IOException
Parameters
c:RevCommit

given commit

map:NoteMap

note map

label:String

label

emptyLine:boolean

whether to start with an empty line

Returns:boolean

true if note was printed, false otherwise

Exceptions
IOException:
if an IO error occurred
showSignatureback to summary
private void showSignature(RevCommit c) throws IOException
sourcePrefixback to summary
pack-priv void sourcePrefix(String path)
Annotations
@Option
name:--src-prefix
usage:usage_srcPrefix
unifiedback to summary
pack-priv void unified(int lines)
Annotations
@Option
name:-U
aliases:--unified
metaVar:metaVar_linesOfContext