@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
29 lines • 1.58 kB
TypeScript
import type { NOOPAccessor } from '../../../../accessor/base.ts';
import type { PathSpec } from '../../../../types.ts';
import type { CommandFnResult, Context } from '../../../config.ts';
/**
* Show each object a line names, in order: a commit as its log entry and its
* diff against its parent, an annotated tag as its own block ahead of what it
* points at, a tree as its listing and a blob as its bytes.
*
* Every name resolves before anything prints, and a commit named twice prints
* once. A blank line goes ahead of every tag and tree but the first thing shown,
* and ahead of every later commit unless the format ends each entry itself
* (oneline, tformat); a blob takes none and counts for none. Pinned against git
* 2.50.1.
*
* Operands after `--` are pathspecs, read once the revision has resolved, as
* git reads them; they limit the diff to the paths they name, and a commit
* that changes nothing they name prints nothing at all.
*/
export declare function show(_accessor: NOOPAccessor, _paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>;
/**
* Compare a commit with its parents.
*
* Every block opens with the commit id unless `--no-commit-id`, and a parent
* the commit does not differ from prints nothing, id included. Operands after
* `--` are pathspecs, read once the commit has resolved; they limit every block
* to the paths they name.
*/
export declare function diffTree(_accessor: NOOPAccessor, _paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>;
//# sourceMappingURL=show.d.ts.map