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 intprivate intprivate BlameResultprivate RawTextComparatorprivate SimpleDateFormatprivate final PersonIdentUsed to get a current time stamp for lines without commit.private intprivate Stringprivate booleanprivate Stringprivate Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringabbreviate(ObjectReader reader, RevCommit commit) private Stringauthor(int line) private Stringdate(int line) private int(package private) voidignoreAllSpace(boolean on) private voidprivate Stringpath(int line) protected voidrun()Perform the actions of this command.private static booleansameCommit(RevCommit a, RevCommit b) private intuniqueAbbrevLen(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:
runin classTextBuiltin
-
sameCommit
-
uniqueAbbrevLen
- Throws:
IOException
-
parseLineRangeOption
private void parseLineRangeOption() -
findLine
-
path
-
author
-
date
-
abbreviate
- Throws:
IOException
-