From a02f2fcf8077c84eaf3721c56287728623b43d36 Mon Sep 17 00:00:00 2001 From: Sven Van Caekenberghe Date: Sat, 2 Nov 2024 19:38:01 +0100 Subject: [PATCH] Fix PureGitExtendedFileAnalysis>>#computeVersions by using UnifiedDiffChangeChunk's effectiveOldStart instead of oldStart --- src/Iceberg-Git-CLI/PureGitExtendedFileAnalysis.class.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Iceberg-Git-CLI/PureGitExtendedFileAnalysis.class.st b/src/Iceberg-Git-CLI/PureGitExtendedFileAnalysis.class.st index 208b538..453ed5d 100644 --- a/src/Iceberg-Git-CLI/PureGitExtendedFileAnalysis.class.st +++ b/src/Iceberg-Git-CLI/PureGitExtendedFileAnalysis.class.st @@ -66,7 +66,7 @@ PureGitExtendedFileAnalysis >> computeVersions [ streamContents: [ :out | commit changesToParent changeChunks do: [ :changeChunk | - [ oldLineNumber < changeChunk oldStart ] + [ oldLineNumber < changeChunk effectiveOldStart ] whileTrue: [ line := previous at: oldLineNumber. line positionInVersionAt: rank put: newLineNumber. out nextPut: line.