lil branch refactor

This commit is contained in:
Dax Raad 2025-11-26 12:34:48 -05:00
commit 98031173b6

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()