Ask a question to get started
Enter to send•Shift+Enter new line
HUNK_RE: Final[re.Pattern[str]] = re.compile('@@ -(\\d+)(?:,(\\d+))? \\+(\\d+)(?:,(\\d+))?')
Matches a hunk header.
Captures, in order: old start line, old line count, new start line, new line count. Either count is absent for a single-line range, where it defaults to 1.