* Returns the index of the line within the hunk * * @param diffLineIdx the 0-based index of the line in the diff * * @note assumes that the line is contained within the hunk * @note if the line is a header line, -1 is returned; otherwise the returned * number is the index of the line in the `lines` list */
| 69 | * number is the index of the line in the `lines` list |
| 70 | */ |
| 71 | int diffLineToHunkLine(uint diffLineIdx) const { return diffLineIdx - (headingLineIdx + 1); } |
| 72 | |
| 73 | /** |
| 74 | * A helper method to construct a hunk header from the provided info |