Exemplo n.º 1
0
        private void Add(RevCommit c)
        {
            int flag = walker.AllocFlag();

            branchMask |= flag;
            if ((c.flags & branchMask) != 0)
            {
                // This should never happen. RevWalk ensures we get a
                // commit admitted to the initial queue only once. If
                // we see this marks aren't correctly erased.
                //
                throw new InvalidOperationException(MessageFormat.Format(JGitText.Get().staleRevFlagsOn
                                                                         , c.Name));
            }
            c.flags |= flag;
            pending.Add(c);
        }