git-tweezers
Version:
Advanced git staging tool with hunk and line-level control
14 lines (13 loc) • 435 B
TypeScript
/**
* Analyzes raw diff text to extract EOL information
*/
export declare class DiffAnalyzer {
/**
* Check if a specific line in the diff has the "No newline at end of file" marker
*/
static hasNoNewlineMarker(diffLines: string[], lineIndex: number): boolean;
/**
* Analyze diff text and create a map of line positions to EOL status
*/
static analyzeEOL(diffText: string): Map<number, boolean>;
}