UNPKG

git-tweezers

Version:

Advanced git staging tool with hunk and line-level control

12 lines (11 loc) 359 B
/** * Parse file:hunk selector syntax * Examples: * "src/file.ts:3" -> { file: "src/file.ts", selector: "3" } * "src/file.ts:a3f5" -> { file: "src/file.ts", selector: "a3f5" } * "src/file.ts" -> { file: "src/file.ts", selector: undefined } */ export declare function parseFileSelector(input: string): { file: string; selector?: string; };