13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import { $ } from "bun"
|
|
import { die } from "../fmt.ts"
|
|
import { requireSession } from "./helpers.ts"
|
|
|
|
export async function action(branch: string) {
|
|
const { session } = await requireSession(branch)
|
|
|
|
const result = await $`git -C ${session.worktree} log main..HEAD`.nothrow()
|
|
if (result.exitCode !== 0) {
|
|
die("git log failed")
|
|
}
|
|
}
|