Top Description Inners Constructors Methods
org.eclipse.jgit.revwalk.filter

public Class CommitterRevFilter

extends Object
Class Inheritance
Imports
java.util.regex.Pattern, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.revwalk.RevCommit, org.eclipse.jgit.util.RawCharSequence, .RawParseUtils

Matches only commits whose committer name matches the pattern.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static RevFilter

Returns:

a new filter that matches the given expression against the author name and address of a commit.
create
(String
regular expression pattern to match.
pattern
)

Create a new committer filter.

pack-priv static RawCharSequence
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CommitterRevFilterback to summary
private CommitterRevFilter()

Method Detail

createback to summary
public static RevFilter create(String pattern)

Create a new committer filter.

An optimized substring search may be automatically selected if the pattern does not contain any regular expression meta-characters.

The search is performed using a case-insensitive comparison. The character encoding of the commit message itself is not respected. The filter matches on raw UTF-8 byte sequences.

Parameters
pattern:String

regular expression pattern to match.

Returns:RevFilter

a new filter that matches the given expression against the author name and address of a commit.

textForback to summary
pack-priv static RawCharSequence textFor(RevCommit cmit)
org.eclipse.jgit.revwalk.filter back to summary

private Class CommitterRevFilter.PatternSearch

extends PatternMatchRevFilter
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
PatternSearch(String patternText)

Method Summary

Modifier and TypeMethod and Description
public RevFilter
clone()

Implements abstract org.eclipse.jgit.revwalk.filter.RevFilter.clone.

Creates and returns a copy of this object.

protected CharSequence
text(RevCommit
current commit being evaluated.
cmit
)

Implements abstract org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter.text.

Obtain the raw text to match against.

Inherited from org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter:
forceToRawincludepatternrequiresCommitBodytoString

Constructor Detail

PatternSearchback to summary
pack-priv PatternSearch(String patternText)

Method Detail

cloneback to summary
public RevFilter clone()

Implements abstract org.eclipse.jgit.revwalk.filter.RevFilter.clone.

Doc from org.eclipse.jgit.revwalk.filter.RevFilter.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Clone this revision filter, including its parameters.

This is a deep clone. If this filter embeds objects or other filters it must also clone those, to ensure the instances do not share mutable data.

Returns:RevFilter

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
textback to summary
protected CharSequence text(RevCommit cmit)

Implements abstract org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter.text.

Doc from org.eclipse.jgit.revwalk.filter.PatternMatchRevFilter.text.

Obtain the raw text to match against.

Parameters
cmit:RevCommit

current commit being evaluated.

Returns:CharSequence

sequence for the commit's content that we need to match on.

Annotations
@Override
org.eclipse.jgit.revwalk.filter back to summary

private Class CommitterRevFilter.SubStringSearch

extends SubStringRevFilter
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
SubStringSearch(String patternText)

Method Summary

Modifier and TypeMethod and Description
protected RawCharSequence
text(RevCommit
current commit being evaluated.
cmit
)

Implements abstract org.eclipse.jgit.revwalk.filter.SubStringRevFilter.text.

Obtain the raw text to match against.

Inherited from org.eclipse.jgit.revwalk.filter.SubStringRevFilter:
cloneincluderequiresCommitBodysafetoString

Constructor Detail

SubStringSearchback to summary
pack-priv SubStringSearch(String patternText)

Method Detail

textback to summary
protected RawCharSequence text(RevCommit cmit)

Implements abstract org.eclipse.jgit.revwalk.filter.SubStringRevFilter.text.

Doc from org.eclipse.jgit.revwalk.filter.SubStringRevFilter.text.

Obtain the raw text to match against.

Parameters
cmit:RevCommit

current commit being evaluated.

Returns:RawCharSequence

sequence for the commit's content that we need to match on.

Annotations
@Override