Git.currentBranch()
Home > @backstage/backend-common
> Git
> currentBranch
https://isomorphic-git.org/docs/en/currentBranch
Signature:
currentBranch(options: {
dir: string;
fullName?: boolean;
}): Promise<string | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
options | { dir: string; fullName?: boolean; } |
Returns:
Promise<string | undefined>