GitSharp.Core.Transport.UploadPack.WantSatisfied C# (CSharp) Method

WantSatisfied() private method

private WantSatisfied ( RevCommit want ) : bool
want GitSharp.Core.RevWalk.RevCommit
return bool
        private bool WantSatisfied(RevCommit want)
        {
            _walk.resetRetain(SAVE);
            _walk.markStart(want);

            while (true)
            {
                RevCommit c = _walk.next();
                if (c == null) break;
                if (c.has(PEER_HAS))
                {
                    AddCommonBase(c);
                    return true;
                }
            }
            return false;
        }