Class RefWriter


@Deprecated(since="7.7") public abstract class RefWriter extends PackedRefsWriter
Deprecated.
since 7.7 Contains a bug in trait handling; retained for backward compatibility and will be removed in the next version. Use PackedRefsWriter instead.
Writes out refs to the Constants.INFO_REFS and Constants.PACKED_REFS files. This class is abstract as the writing of the files must be handled by the caller. This is because it is used by transport classes as well.
  • Constructor Details

    • RefWriter

      @Deprecated(since="7.7") public RefWriter(Collection<Ref> refs)
      Deprecated.

      Constructor for RefWriter.

      Parameters:
      refs - the complete set of references. This should have been computed by applying updates to the advertised refs already discovered.
    • RefWriter

      @Deprecated(since="7.7") public RefWriter(Map<String,Ref> refs)
      Deprecated.

      Constructor for RefWriter.

      Parameters:
      refs - the complete set of references. This should have been computed by applying updates to the advertised refs already discovered.
    • RefWriter

      @Deprecated(since="7.7") public RefWriter(RefList<Ref> refs)
      Deprecated.

      Constructor for RefWriter.

      Parameters:
      refs - the complete set of references. This should have been computed by applying updates to the advertised refs already discovered.