Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
411 B
Raw Blame
import Git from '../../../hooks/git'
import { ok } from './ok.js'
import { scriptedGitOf } from './scripted-git-of.js'

/**
 * What the repository probe makes of a scripted `rev-parse` answer.
 *
 * @param stdout the scripted rev-parse output
 * @returns the probed repository, or null
 */
export const probedRepositoryOf = (stdout: string) =>
  Git.repositoryOf(scriptedGitOf({ 'rev-parse': ok(stdout) }).run)