gatelineAPI reference
  • headBranch is the branch HEAD names, and is consulted only when the repository has no origin/HEAD, main or master to call the default — the same last resort Git.defaultBranch falls back to.

    Parameters

    • refs: NamedRef[]
    • headBranch: () => Promise<null | string>

    Returns Promise<ViewRefs>