UNPKG

reviewit

Version:

A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view

12 lines (11 loc) 468 B
import { type DiffResponse } from '../types/diff.js'; export declare class GitDiffParser { private git; constructor(repoPath?: string); parseDiff(targetCommitish: string, baseCommitish: string, ignoreWhitespace?: boolean): Promise<DiffResponse>; private parseUnifiedDiff; private parseFileBlock; private parseChunks; validateCommit(commitish: string): Promise<boolean>; getBlobContent(filepath: string, ref: string): Promise<Buffer>; }