parent
b25375dad8
commit
950c9398bf
2 changed files with 5 additions and 3 deletions
|
@ -7,15 +7,17 @@ import org.eclipse.jgit.submodule.SubmoduleStatus
|
|||
sealed class DiffResult(
|
||||
val diffEntry: DiffEntry,
|
||||
) {
|
||||
sealed class TextDiff(diffEntry: DiffEntry): DiffResult(diffEntry)
|
||||
|
||||
class Text(
|
||||
diffEntry: DiffEntry,
|
||||
val hunks: List<Hunk>
|
||||
) : DiffResult(diffEntry)
|
||||
) : TextDiff(diffEntry)
|
||||
|
||||
class TextSplit(
|
||||
diffEntry: DiffEntry,
|
||||
val hunks: List<SplitHunk>
|
||||
) : DiffResult(diffEntry)
|
||||
) : TextDiff(diffEntry)
|
||||
|
||||
class NonText(
|
||||
diffEntry: DiffEntry,
|
||||
|
|
|
@ -121,7 +121,7 @@ fun Diff(
|
|||
diffEntry = diffEntry,
|
||||
onCloseDiffView = onCloseDiffView,
|
||||
diffType = diffType,
|
||||
isTextDiff = diffResult is DiffResult.Text,
|
||||
isTextDiff = diffResult is DiffResult.TextDiff,
|
||||
isDisplayFullFile = isDisplayFullFile,
|
||||
onStageFile = { diffViewModel.stageFile(it) },
|
||||
onUnstageFile = { diffViewModel.unstageFile(it) },
|
||||
|
|
Loading…
Reference in a new issue