include() public abstract method

Determine if the supplied commit should be included in results.
/// The filter knows for certain that no additional commits can /// ever match, and the current commit doesn't match either. The /// walk is halted and no more results are provided. /// /// An object the filter needs to consult to determine its answer /// does not exist in the Git repository the Walker is operating /// on. Filtering this commit is impossible without the object. /// /// An object the filter needed to consult was not of the /// expected object type. This usually indicates a corrupt /// repository, as an object link is referencing the wrong type. /// /// A loose object or pack file could not be Read to obtain data /// necessary for the filter to make its decision. ///
public abstract include ( RevWalk walker, RevCommit cmit ) : bool
walker RevWalk /// The active walker this filter is being invoked from within. ///
cmit RevCommit /// The commit currently being tested. The commit has been parsed /// and its body is available for inspection. ///
return bool
示例#1
0
 public override bool include(RevWalk walker, RevCommit cmit)
 {
     return(_a.include(walker, cmit) || _b.include(walker, cmit));
 }
示例#2
0
 public override bool include(RevWalk walker, RevCommit c)
 {
     return(_a.include(walker, c) && _b.include(walker, c));
 }