| 518 | |
| 519 | |
| 520 | const QVector<VcsDiff::FilePair> VcsDiff::fileNames() const |
| 521 | { |
| 522 | QVector<VcsDiff::FilePair> ret; |
| 523 | VcsDiff::FilePair current; |
| 524 | for (const auto& h : d->hunks) { |
| 525 | // List each pair only once |
| 526 | if (h.srcFile == current.source && h.tgtFile == current.target) |
| 527 | continue; |
| 528 | current = { h.srcFile, h.tgtFile }; |
| 529 | ret.push_back(current); |
| 530 | } |
| 531 | return ret; |
| 532 | } |
| 533 | |
| 534 | |
| 535 | VcsDiff::SourceLocation VcsDiff::diffLineToSource ( const uint line ) const |