SetAdvertisedRefs() public method

Set the refs advertised by this UploadPack.
Set the refs advertised by this UploadPack.

Intended to be called from a PreUploadHook .

public SetAdvertisedRefs ( Ref>.IDictionary allRefs ) : void
allRefs Ref>.IDictionary /// explicit set of references to claim as advertised by this /// UploadPack instance. This overrides any references that /// may exist in the source repository. The map is passed /// to the configured /// GetRefFilter() /// . If null, assumes /// all refs were advertised. ///
return void
 /// <exception cref="NGit.Transport.ServiceMayNotContinueException"></exception>
 public override void AdvertiseRefs(UploadPack uploadPack)
 {
     uploadPack.SetAdvertisedRefs(GetAdvertisedRefs(uploadPack.GetRepository(), uploadPack
                                                    .GetRevWalk()));
 }
		/// <exception cref="NGit.Transport.ServiceMayNotContinueException"></exception>
		public override void AdvertiseRefs(UploadPack uploadPack)
		{
			uploadPack.SetAdvertisedRefs(GetAdvertisedRefs(uploadPack.GetRepository(), uploadPack
				.GetRevWalk()));
		}