gatelineAPI reference
  • onChange fires once the writes have settled; onTouch fires at once, on every write. Neither means a ref moved — the git directory is also written by an index refresh or a fetch that brought nothing (#461) — only that the refs are worth reading again.

    Parameters

    • dir: string
    • onChange: () => void
    • debounceMs: number = 300
    • onTouch: () => void = ...

    Returns Promise<Unwatch>