Creates a hunk header line (starting with @@) * * Note: The line will not end with a newline */
| 136 | * |
| 137 | * Note: The line will not end with a newline */ |
| 138 | QString DiffHunk::formatHeader(uint oldStart, uint oldCount, uint newStart, uint newCount, QString head) |
| 139 | { |
| 140 | return QLatin1String("@@ -") + formatRange(oldStart, oldCount) + QLatin1String(" +") |
| 141 | + formatRange(newStart, newCount) + QLatin1String(" @@") + head; |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Parses a unified diff into a list of "diff hunks" (each hunk starts with a |
nothing calls this directly
no test coverage detected