internal RefDirectory(FileRepository db)
        {
            //$NON-NLS-1$
            //$NON-NLS-1$
            //$NON-NLS-1$
            FS fs = db.FileSystem;

            parent         = db;
            gitDir         = db.Directory;
            logWriter      = new ReflogWriter(db);
            refsDir        = fs.Resolve(gitDir, Constants.R_REFS);
            packedRefsFile = fs.Resolve(gitDir, Constants.PACKED_REFS);
            looseRefs.Set(RefList.EmptyList <RefDirectory.LooseRef>());
            packedRefs.Set(RefDirectory.PackedRefList.NO_PACKED_REFS);
        }
 // We have no resources to close.
 internal virtual void Rescan()
 {
     looseRefs.Set(RefList.EmptyList <RefDirectory.LooseRef>());
     packedRefs.Set(RefDirectory.PackedRefList.NO_PACKED_REFS);
 }