UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

18 lines • 976 B
import type { NOOPAccessor } from '../../../../accessor/base.ts'; import { PathSpec } from '../../../../types.ts'; import type { CommandFnResult, Context } from '../../../config.ts'; import { GitError } from './errors.ts'; import type { RepoLocation } from './types.ts'; /** * `git hash-object`: the id content would be stored under, read from each FILE, * `--stdin` or `--stdin-paths`. Another type than blob is checked first unless * `--literally` (without git's fsck detail lines), and `-w` writes the object. * Pinned against git 2.50.1. */ export declare function hashObject(_accessor: NOOPAccessor, paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>; /** * hash-object's refusal by a read-only mount: the first object it could not * add, named as typed, `(null)` for stdin's. */ export declare function hashObjectReadOnly(texts: string[], ctx: Context, _location: RepoLocation | null): GitError; //# sourceMappingURL=hash_object.d.ts.map