Skip to content

Commit

Permalink
Fixed interline diffs.
Browse files Browse the repository at this point in the history
Do not try to clean up the line diff, as it may end up inadvertently combining lines.
  • Loading branch information
mitchell-as committed Nov 18, 2024
1 parent 7d88e59 commit 3eb0e78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/runbits/buildscript/buildscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func generateDiff(script *buildscript.BuildScript, otherScript *buildscript.Buil
scriptLines, newScriptLines, lines := diff.DiffLinesToChars(string(sb1), string(sb2))
hunks := diff.DiffMain(scriptLines, newScriptLines, false)
hunks = diff.DiffCharsToLines(hunks, lines)
hunks = diff.DiffCleanupSemantic(hunks)
for i := 0; i < len(hunks); i++ {
switch hunk := hunks[i]; hunk.Type {
case diffmatchpatch.DiffEqual:
Expand Down

0 comments on commit 3eb0e78

Please sign in to comment.