UNPKG

git-tweezers

Version:

Advanced git staging tool with hunk and line-level control

29 lines (28 loc) 711 B
import type { HunkInfo } from '../types/hunk-info.js'; export interface RenderOptions { context?: number; maxLines?: number; color?: boolean; } export declare class DiffRenderer { /** * Render a hunk with optional context lines */ renderHunk(hunk: HunkInfo, options?: RenderOptions): string; /** * Render a single line change */ private renderLine; /** * Get the prefix character for a change type */ private getPrefix; /** * Check if there's a change within the given distance */ private hasChangeWithin; /** * Render a summary for a hunk (for inline display) */ renderHunkSummary(hunk: HunkInfo): string; }