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 int
abbrev
private java.util.Map<RevCommit,java.lang.String>
abbreviatedCommits
private int
begin
private BlameResult
blame
private RawTextComparator
comparator
private java.text.SimpleDateFormat
dateFmt
private PersonIdent
dummyDate
Used to get a current time stamp for lines without commit.private int
end
private java.lang.String
file
private boolean
noAuthor
private java.lang.String
rangeString
private java.util.List<RevCommit>
reverseRange
private java.lang.String
revision
private boolean
root
private boolean
showAuthorEmail
private boolean
showBlankBoundary
private boolean
showLongRevision
private boolean
showRawTimestamp
private boolean
showSourceLine
private boolean
showSourcePath
-
Constructor Summary
Constructors Constructor Description Blame()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
abbreviate(ObjectReader reader, RevCommit commit)
private java.lang.String
author(int line)
private java.lang.String
date(int line)
private int
findLine(int b, java.lang.String regex)
(package private) void
ignoreAllSpace(boolean on)
private void
parseLineRangeOption()
private java.lang.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 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:
run
in 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
-
-