public virtual void TestHasAnyFlag() { RevCommit a = Commit(); RevFlag flag1 = rw.NewFlag("flag1"); RevFlag flag2 = rw.NewFlag("flag2"); RevFlagSet s = new RevFlagSet(); s.AddItem(flag1); s.AddItem(flag2); NUnit.Framework.Assert.IsFalse(a.HasAny(s)); a.flags |= flag1.mask; NUnit.Framework.Assert.IsTrue(a.HasAny(s)); }
/// <exception cref="NGit.Errors.MissingObjectException"></exception> /// <exception cref="NGit.Errors.IncorrectObjectTypeException"></exception> /// <exception cref="System.IO.IOException"></exception> public override bool Include(RevWalk walker, RevCommit c) { return c.HasAny(flags); }