@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
15 lines • 845 B
TypeScript
import type { NOOPAccessor } from '../../../../accessor/base.ts';
import type { PathSpec } from '../../../../types.ts';
import type { CommandFnResult, Context } from '../../../config.ts';
/**
* Diff the working tree, staged content or commits.
*
* No revision compares the index with the working tree, and one compares that
* revision with it, as git does; two diff against each other. The index is
* compared with the named revision under --cached or --staged, defaulting to
* HEAD or the empty tree on an unborn branch. Operands after `--` are
* pathspecs, read once the revisions have resolved, as git reads them, and
* every format shows only the paths they name.
*/
export declare function diff(_accessor: NOOPAccessor, paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>;
//# sourceMappingURL=diff.d.ts.map