gatelineAPI reference

Positions of a run's commits on its branch, newest first. Built once per observation; every comparison after that is a map lookup.

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • True when oid is strictly later on the branch than than, false when it is the same commit or earlier, and null when either commit is unplaceable — the caller's cue to fall back to timestamps rather than to treat "unknown" as "no".

    Parameters

    • oid: undefined | null | string
    • than: undefined | null | string

    Returns null | boolean

  • Position of oid (0 at the branch tip), or null when the index never saw it.

    Parameters

    • oid: undefined | null | string

    Returns null | number