/** * Resolve the default branch of a local clone from `refs/remotes//HEAD`. * * `git clone` sets this symbolic ref to the remote's default branch (the one * GitHub/GitLab marks as default), so a repo cloned with `master` as its * primary branch reports `/master` and one on `main` reports * `/main`. Reading it locally means no network round-trip and no * per-repo config to maintain. * * Best-effort: when the HEAD ref is unset (rare — e.g. an out-of-band clone or * a `git remote set-head --delete`) or git otherwise fails, fall back to the * caller-supplied default so worktree creation and branch probes keep working. * Abort signals still propagate so a cancelled run doesn't waste time on the * fallback path. */ interface ResolveDefaultBranchInput { repoDir: string; remote: string; fallback: string; signal?: AbortSignal; } export declare function resolveDefaultBranch(input: ResolveDefaultBranchInput): Promise; export {}; //# sourceMappingURL=defaultBranch.d.ts.map