MCPcopy Create free account
hub / github.com/KDE/kdiff3 / updateDirectoryOrLink

Method updateDirectoryOrLink

src/MergeFileInfos.cpp:68–89  ·  view source on GitHub ↗

Check for directories or links marked as not equal and mark them equal. */

Source from the content-addressed store, hash-verified

66 Check for directories or links marked as not equal and mark them equal.
67*/
68void MergeFileInfos::updateDirectoryOrLink()
69{
70 bool bChange = false;
71 if(!isEqualAB() && isDirA() == isDirB() && isLinkA() == isLinkB())
72 {
73 m_bEqualAB = true;
74 bChange = true;
75 }
76 if(!isEqualBC() && isDirC() == isDirB() && isLinkC() == isLinkB())
77 {
78 m_bEqualBC = true;
79 bChange = true;
80 }
81 if(!isEqualAC() && isDirA() == isDirC() && isLinkA() == isLinkC())
82 {
83 m_bEqualAC = true;
84 bChange = true;
85 }
86
87 if(bChange)
88 updateAge();
89}
90
91QString MergeFileInfos::subPath() const
92{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected