| 199 | } |
| 200 | |
| 201 | const git_diff_hunk *Patch::header_struct(int hidx) const { |
| 202 | if (isConflicted()) |
| 203 | return nullptr; |
| 204 | |
| 205 | const git_diff_hunk *hunk = nullptr; |
| 206 | int result = git_patch_get_hunk(&hunk, nullptr, d.data(), hidx); |
| 207 | return (GIT_OK == result) ? hunk : nullptr; |
| 208 | } |
| 209 | |
| 210 | int Patch::lineCount(int hidx) const { |
| 211 | if (isConflicted()) |
no test coverage detected