jabr - v0.1.2
    Preparing search index...

    Function detectTrunk

    • Best-effort detection of the repository's trunk branch.

      Prefers a local main, master, or trunk; otherwise falls back to the branch origin/HEAD points at.

      Returns Promise<string>

      The detected trunk name, or an empty string if none could be found.