Beispiel #1
0
        /// <exception cref="NGit.Errors.CorruptObjectException"></exception>
        internal override void SkipEntriesEqual()
        {
            AbstractTreeIterator ch = currentHead;

            for (int i = 0; i < trees.Length; i++)
            {
                AbstractTreeIterator t = trees[i];
                if (t.matches == ch)
                {
                    if (t.matchShift == 0)
                    {
                        t.Skip();
                    }
                    else
                    {
                        t.Back(t.matchShift);
                        t.matchShift = 0;
                    }
                    t.matches = null;
                }
            }
            if (ch == dfConflict)
            {
                dfConflict = null;
            }
        }
Beispiel #2
0
        /// <exception cref="NGit.Errors.CorruptObjectException"></exception>
        internal virtual void SkipEntriesEqual()
        {
            AbstractTreeIterator ch = currentHead;

            for (int i = 0; i < trees.Length; i++)
            {
                AbstractTreeIterator t = trees[i];
                if (t.matches == ch)
                {
                    t.Skip();
                    t.matches = null;
                }
            }
        }