Compare commits

..

No commits in common. "1382f55964e99614ac8cb3a586253f06c7b8fc5d" and "40cd8f332c910ad1f21b5692be6ee1fb760c36eb" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@because/sandlot",
"version": "0.0.7",
"version": "0.0.5",
"description": "Sandboxed, branch-based development with Claude",
"type": "module",
"bin": {

View File

@ -1,15 +1,12 @@
import { $ } from "bun"
import { die, yellow, reset, pager } from "../fmt.ts"
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 --no-color main..HEAD`.nothrow().quiet()
const result = await $`git -C ${session.worktree} log main..HEAD`.nothrow()
if (result.exitCode !== 0) {
die("git log failed")
}
const output = result.text().replace(/^(commit [0-9a-f]+)/gm, `${yellow}$1${reset}`)
await pager(output)
}