/// <summary> /// Create a new pack receive for an open repository. /// </summary> /// <param name="into">the destination repository.</param> public ReceivePack(Repository into) { db = into; walk = new RevWalk.RevWalk(db); ReceiveConfig cfg = db.Config.get(ReceiveConfig.KEY); checkReceivedObjects = cfg._checkReceivedObjects; allowCreates = cfg._allowCreates; allowDeletes = cfg._allowDeletes; allowNonFastForwards = cfg._allowNonFastForwards; allowOfsDelta = cfg._allowOfsDelta; refFilter = RefFilterContants.DEFAULT; preReceive = PreReceiveHook.NULL; postReceive = PostReceiveHook.NULL; }
/// <summary> /// Create a new pack upload for an open repository. /// </summary> /// <param name="copyFrom">the source repository.</param> public UploadPack(Repository copyFrom) { _db = copyFrom; _walk = new RevWalk.RevWalk(_db); _walk.setRetainBody(false); ADVERTISED = _walk.newFlag("ADVERTISED"); WANT = _walk.newFlag("WANT"); PEER_HAS = _walk.newFlag("PEER_HAS"); COMMON = _walk.newFlag("COMMON"); _walk.carry(PEER_HAS); SAVE = new RevFlagSet { ADVERTISED, WANT, PEER_HAS }; _refFilter = RefFilterContants.DEFAULT; }
public FilterInstanceRule(ParamsIssuerImporter asset, SchemaFilter vis) { //Discarded unreachable code: IL_0002, IL_0006 //IL_0003: Incompatible stack heights: 0 vs 1 //IL_0007: Incompatible stack heights: 0 vs 1 SingletonReader.PushGlobal(); base._002Ector(); if (asset._0001() != 16) { throw new ArgumentException("cipher required with a block size of " + 16 + "."); } if (vis == null) { vis = new RefFilter(); } _ComparatorFilter = asset; procFilter = vis; }
/// <summary> /// Set the filter used while advertising the refs to the client. /// <para/> /// Only refs allowed by this filter will be sent to the client. This can /// be used by a server to restrict the list of references the client can /// obtain through clone or fetch, effectively limiting the access to only /// certain refs. /// </summary> /// <param name="refFilter">the filter; may be null to show all refs.</param> public void setRefFilter(RefFilter refFilter) { _refFilter = refFilter ?? RefFilterContants.DEFAULT; }
public IdRef(string id, SearchDirection direction, RefFilter filter, bool nonOverlapping, bool inclusive) : base(filter, nonOverlapping, inclusive) { ID = id; Direction = direction; }
public NumRef(int number, RefFilter filter, bool nonOverlapping, bool inclusive) : base(filter, nonOverlapping, inclusive) { Number = number; }
public TaggedRef(KeyValuePair <string, string>[] tags, RefFilter filter, bool nonOverlapping, bool inclusive) : base(filter, nonOverlapping, inclusive) { _tags = tags; }
public RegexIdRef(string pattern, SearchDirection direction, RefFilter filter, bool nonOverlapping, bool inclusive) : base(filter, nonOverlapping, inclusive) { Pattern = pattern; Direction = direction; }
protected BaseRef(RefFilter filter, bool nonOverlapping, bool inclusive) { Filter = filter; NonOverlapping = nonOverlapping; Inclusive = inclusive; }
protected BaseRefContracts(RefFilter filter, bool nonOverlapping, bool inclusive) : base(filter, nonOverlapping, inclusive) { }