Package org.eclipse.jgit.pgm
Class Blame
java.lang.Object
org.eclipse.jgit.pgm.TextBuiltin
org.eclipse.jgit.pgm.Blame
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.pgm.TextBuiltin
TextBuiltin.TerminatedByHelpException
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private BlameResult
private RawTextComparator
private SimpleDateFormat
private final PersonIdent
Used to get a current time stamp for lines without commit.private int
private String
private boolean
private String
private String
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
abbreviate
(ObjectReader reader, RevCommit commit) private String
author
(int line) private String
date
(int line) private int
(package private) void
ignoreAllSpace
(boolean on) private void
private String
path
(int line) protected void
run()
Perform the actions of this command.private static boolean
sameCommit
(RevCommit a, RevCommit b) private int
uniqueAbbrevLen
(ObjectReader reader, RevCommit commit) Methods inherited from class org.eclipse.jgit.pgm.TextBuiltin
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, requiresRepository, resolve, setCommandName
-
Field Details
-
comparator
-
abbrev
private int abbrev -
showLongRevision
private boolean showLongRevision -
showRawTimestamp
private boolean showRawTimestamp -
showBlankBoundary
private boolean showBlankBoundary -
noAuthor
private boolean noAuthor -
showAuthorEmail
private boolean showAuthorEmail -
showSourcePath
private boolean showSourcePath -
showSourceLine
private boolean showSourceLine -
root
private boolean root -
rangeString
-
reverseRange
-
revision
-
file
-
abbreviatedCommits
-
dateFmt
-
begin
private int begin -
end
private int end -
blame
-
dummyDate
Used to get a current time stamp for lines without commit.
-
-
Constructor Details
-
Blame
Blame()
-
-
Method Details
-
ignoreAllSpace
void ignoreAllSpace(boolean on) -
run
protected void run()Perform the actions of this command.This method should only be invoked by
TextBuiltin.execute(String[])
.- Specified by:
run
in classTextBuiltin
-
sameCommit
-
uniqueAbbrevLen
- Throws:
IOException
-
parseLineRangeOption
private void parseLineRangeOption() -
findLine
-
path
-
author
-
date
-
abbreviate
- Throws:
IOException
-