DisposeBody() public method

Release as much memory as possible from this object.
public DisposeBody ( ) : void
return void
示例#1
0
        private void MarkLocalObjComplete(RevObject obj)
        {
            while (obj.Type == Constants.OBJ_TAG)
            {
                obj.add(COMPLETE);
                obj.DisposeBody();
                obj = ((RevTag)obj).getObject();
                _revWalk.parseHeaders(obj);
            }

            switch (obj.Type)
            {
                case Constants.OBJ_BLOB:
                    obj.add(COMPLETE);
                    break;

                case Constants.OBJ_COMMIT:
                    PushLocalCommit((RevCommit)obj);
                    break;

                case Constants.OBJ_TREE:
                    MarkTreeComplete(obj);
                    break;
            }
        }