//#region src/utils/git_metadata.d.ts /** * Git metadata auto-capture utility. * * Resolves git SHA and ref (branch) from environment variables or by shelling * out to git. Repo URL is opt-in via env var only (never shelled out from * `git remote get-url`) to avoid leaking embedded credentials in HTTPS remotes * such as `https://user:token@github.com/org/repo.git`. Env-var-supplied * repo URLs are sanitized before use. */ interface GitMetadata { gitSha?: string; gitRef?: string; gitRepo?: string; } declare function getGitMetadata(): GitMetadata; /** @internal Reset the cache. For test isolation only. */ declare function _resetCache(): void; //#endregion export { GitMetadata, _resetCache, getGitMetadata }; //# sourceMappingURL=git_metadata.d.ts.map