Skip to content

Companion

object Companion

Functions

calculateMode

Calculates KaDanglingFileResolutionMode for the given file.

This mode is calculated based solely on the difference between the given dangling file and its copyOrigin. If there was an out-of-block modification made in the file compared to its copyOrigin, returns KaDanglingFileResolutionMode.PREFER_SELF. Otherwise, returns KaDanglingFileResolutionMode.IGNORE_SELF.

If the given file is not a dangling one, returns KaDanglingFileResolutionMode.PREFER_SELF.