Esempio n. 1
0
        /// <exception cref="NGit.Errors.MissingObjectException"></exception>
        /// <exception cref="System.IO.IOException"></exception>
        private void CreateVerifyOpenPack(ICollection <ObjectId> interestings, ICollection
                                          <ObjectId> uninterestings, bool thin, bool ignoreMissingUninteresting)
        {
            NullProgressMonitor m = NullProgressMonitor.INSTANCE;

            writer = new PackWriter(config, db.NewObjectReader());
            writer.SetThin(thin);
            writer.SetIgnoreMissingUninteresting(ignoreMissingUninteresting);
            writer.PreparePack(m, interestings, uninterestings);
            writer.WritePack(m, m, os);
            writer.Release();
            VerifyOpenPack(thin);
        }