Class LabelIndex

java.lang.Object
io.github.jbastgen.stemma.app.label.LabelIndex

public final class LabelIndex extends Object
The label index: a text file that records which labels exist and which commits have which labels. It is an append-only log of events, one per line, so several people or computers can share one file (a network share, or a folder that a sync tool keeps in step) without a server: see docs/label-index.md for the format and for how to set it up.

Reading is tolerant: unknown or damaged lines are skipped, so a newer version's additions or a half-synced file never stop the application. Writing appends one complete line at a time.

  • Method Details

    • idFor

      public static String idFor(String name)
      A label id for a name: lower case letters, digits and hyphens.