Creates a hunk header line (starting with @@) * * Note: The line will not end with a newline */
| 154 | * |
| 155 | * Note: The line will not end with a newline */ |
| 156 | QString DiffHunk::formatHeader(uint oldStart, uint oldCount, uint newStart, uint newCount, QString head) |
| 157 | { |
| 158 | return QLatin1String("@@ -") + formatRange(oldStart, oldCount) + QLatin1String(" +") + formatRange(newStart, newCount) + QLatin1String(" @@") + head; |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Parses a unified diff into a list of "diff hunks" (each hunk starts with a |
nothing calls this directly
no test coverage detected