Package org.eclipse.jgit.pgm
Class Blame
- java.lang.Object
-
- org.eclipse.jgit.pgm.TextBuiltin
-
- org.eclipse.jgit.pgm.Blame
-
class Blame extends TextBuiltin
-
-
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 intabbrevprivate java.util.Map<RevCommit,java.lang.String>abbreviatedCommitsprivate intbeginprivate BlameResultblameprivate RawTextComparatorcomparatorprivate java.text.SimpleDateFormatdateFmtprivate PersonIdentdummyDateUsed to get a current time stamp for lines without commit.private intendprivate java.lang.Stringfileprivate booleannoAuthorprivate java.lang.StringrangeStringprivate java.util.List<RevCommit>reverseRangeprivate java.lang.Stringrevisionprivate booleanrootprivate booleanshowAuthorEmailprivate booleanshowBlankBoundaryprivate booleanshowLongRevisionprivate booleanshowRawTimestampprivate booleanshowSourceLineprivate booleanshowSourcePath
-
Constructor Summary
Constructors Constructor Description Blame()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.Stringabbreviate(ObjectReader reader, RevCommit commit)private java.lang.Stringauthor(int line)private java.lang.Stringdate(int line)private intfindLine(int b, java.lang.String regex)(package private) voidignoreAllSpace(boolean on)private voidparseLineRangeOption()private java.lang.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 Detail
-
comparator
private RawTextComparator 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
private java.lang.String rangeString
-
reverseRange
private java.util.List<RevCommit> reverseRange
-
revision
private java.lang.String revision
-
file
private java.lang.String file
-
abbreviatedCommits
private final java.util.Map<RevCommit,java.lang.String> abbreviatedCommits
-
dateFmt
private java.text.SimpleDateFormat dateFmt
-
begin
private int begin
-
end
private int end
-
blame
private BlameResult blame
-
dummyDate
private final PersonIdent dummyDate
Used to get a current time stamp for lines without commit.
-
-
Method Detail
-
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
-
uniqueAbbrevLen
private int uniqueAbbrevLen(ObjectReader reader, RevCommit commit) throws java.io.IOException
- Throws:
java.io.IOException
-
parseLineRangeOption
private void parseLineRangeOption()
-
findLine
private int findLine(int b, java.lang.String regex)
-
path
private java.lang.String path(int line)
-
author
private java.lang.String author(int line)
-
date
private java.lang.String date(int line)
-
abbreviate
private java.lang.String abbreviate(ObjectReader reader, RevCommit commit) throws java.io.IOException
- Throws:
java.io.IOException
-
-