git-tweezers
Version:
Advanced git staging tool with hunk and line-level control
16 lines (15 loc) • 494 B
TypeScript
import type { AnyLineChange } from 'parse-git-diff';
/**
* Extended line change type with EOL information
*/
export type ExtendedLineChange = AnyLineChange & {
/**
* Whether this line has a newline character at the end
* false means "\ No newline at end of file" should be added
*/
eol: boolean;
};
/**
* Helper to determine if a line has EOL based on raw diff content
*/
export declare function hasEOL(line: string, isLastLine: boolean, nextLine?: string): boolean;