lil branch refactor

This commit is contained in:
Dax Raad
2025-11-26 12:34:48 -05:00
parent e8e474597c
commit 98031173b6
5 changed files with 14 additions and 28 deletions

View File

@@ -18,6 +18,15 @@ export namespace Vcs {
),
}
export const Info = z
.object({
branch: z.string(),
})
.meta({
ref: "VcsInfo",
})
export type Info = z.infer<typeof Info>
async function currentBranch() {
return $`git rev-parse --abbrev-ref HEAD`
.quiet()