Class RegistryDelta

java.lang.Object
network.ike.docs.plugin.diff.RegistryDelta

public final class RegistryDelta extends Object
Entry-keyed delta of the IKE topic registry between the two sides of a doc-diff comparison, rendered as an AsciiDoc partial (ike-issues#650).

Always keyed by entry id, never by line: the registry is YAML and ids are its stable keys. Output is condensed for review — summary/notes changes are flagged as rewritten rather than reproduced, list fields report added/removed items, scalars report old → new. Covers the per-domain files, the root index counts, and assembly topic-ref membership.

  • Constructor Details

    • RegistryDelta

      public RegistryDelta(GitSource git, String fromRef, String toRef)
      Create a delta generator over one comparison.
      Parameters:
      git - the repository access
      fromRef - the from-side ref
      toRef - the to-side ref (may be GitSource.WORKTREE)
  • Method Details

    • render

      public String render(String rootRegistry, String registryDir) throws IOException
      Render the delta as an AsciiDoc partial with a level-1 title.
      Parameters:
      rootRegistry - repository-relative path of the thin root index (…/topic-registry.yaml)
      registryDir - repository-relative directory of the per-domain files (…/topic-registry)
      Returns:
      the partial's text, or an empty string when nothing in the registry changed
      Throws:
      IOException - on repository access failure