| 33 | } |
| 34 | |
| 35 | void diffReady( KDevelop::VcsJob* job ) |
| 36 | { |
| 37 | if( job != m_job ) |
| 38 | return; |
| 39 | KDevelop::VcsDiff diff = m_job->fetchResults().value<KDevelop::VcsDiff>(); |
| 40 | |
| 41 | // Try using the patch-review plugin if possible |
| 42 | auto* patch = new VCSDiffPatchSource(diff); |
| 43 | |
| 44 | if(showVcsDiff(patch)) |
| 45 | { |
| 46 | q->deleteLater(); |
| 47 | return; |
| 48 | }else{ |
| 49 | delete patch; |
| 50 | } |
| 51 | |
| 52 | qCDebug(VCS) << "diff:" << diff.diff(); |
| 53 | m_ui->diffDisplay->setPlainText( diff.diff() ); |
| 54 | m_ui->diffDisplay->setReadOnly( true ); |
| 55 | |
| 56 | } |
| 57 | |
| 58 | }; |
| 59 |
no test coverage detected