@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
18 lines • 1.04 kB
TypeScript
import type { NOOPAccessor } from '../../../../accessor/base.ts';
import { PathSpec } from '../../../../types.ts';
import type { CommandFnResult, Context } from '../../../config.ts';
import type { ReadOnlyRefusal } from './types.ts';
/** symbolic-ref's refusal by a read-only mount, at the lock on the ref it names. */
export declare const symbolicRefReadOnly: ReadOnlyRefusal;
/**
* `git symbolic-ref`: read, change or delete a symbolic ref (pinned against git
* 2.47.3).
*
* One operand prints the ref it points at, followed to the end of the chain
* unless `--no-recurse`, shortened by `--short`; a ref that is not symbolic is a
* fatal, or a bare exit 1 under `-q`. Two operands point the first at the
* second, which HEAD may only do inside `refs/`. `-d` removes a symbolic ref
* and its log, never HEAD, and `-q` does not quiet its refusal.
*/
export declare function symbolicRef(_accessor: NOOPAccessor, paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>;
//# sourceMappingURL=symbolic_ref.d.ts.map