| 53 | } |
| 54 | |
| 55 | bool MergeBlock::isSameKind(const MergeBlock &mb2) const |
| 56 | { |
| 57 | if(bConflict && mb2.bConflict) |
| 58 | { |
| 59 | // Both lines have conflicts: If one is only a white space conflict and |
| 60 | // the other one is a real conflict, then this line returns false. |
| 61 | return mId3l->isEqualAC() == mb2.mId3l->isEqualAC() && mId3l->isEqualAB() == mb2.mId3l->isEqualAB(); |
| 62 | } |
| 63 | else |
| 64 | return ( |
| 65 | (!bConflict && !mb2.bConflict && bDelta && mb2.bDelta && srcSelect == mb2.srcSelect && (mergeDetails == mb2.mergeDetails || (mergeDetails != e_MergeDetails::eBCAddedAndEqual && mb2.mergeDetails != e_MergeDetails::eBCAddedAndEqual))) || |
| 66 | (!bDelta && !mb2.bDelta)); |
| 67 | } |
| 68 | |
| 69 | // Calculate the merge information for the given Diff3Line. |
| 70 | // Results will be stored in this and bLineRemoved. |
no test coverage detected