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.
main
master
trunk
origin/HEAD
The detected trunk name, or an empty string if none could be found.
Best-effort detection of the repository's trunk branch.
Prefers a local
main,master, ortrunk; otherwise falls back to the branchorigin/HEADpoints at.