lil branch refactor
This commit is contained in:
parent
e8e474597c
commit
98031173b6
1 changed files with 14 additions and 28 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue