When we are parsing a Hunk header like this @@ -6,9 +6,11 @@ def add(string), we are only capturing previous_lino_start for e.g. -6, new_lino_start for example +6. So we are missing important information like def add(string), and total line changes like 9, 11 etc. I think the lib should add API to reconstruct the header in case someone want it.
When we are parsing a Hunk header like this
@@ -6,9 +6,11 @@ def add(string)
, we are only capturingprevious_lino_start
for e.g. -6,new_lino_start
for example +6. So we are missing important information likedef add(string)
, and total line changes like 9, 11 etc. I think the lib should add API to reconstruct the header in case someone want it.