Skip to content

Commit bab20b5

Browse files
committed
use LineBasedDeltas for file patch
* go-diff has sometimes garbage in the char-based-diffs (needs research) * line-based has more context -> better verify file phase
1 parent aba48aa commit bab20b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff_result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func splitDeltasByContext(deltas Deltas) []Deltas {
3636
}
3737

3838
func (dr *DiffResult) DeltasByContext() []Deltas {
39-
return splitDeltasByContext(dr.CharBasedDeltas)
39+
return splitDeltasByContext(dr.LineBasedDeltas)
4040
}
4141

4242
func (dr *DiffResult) AsSideBySideHTML() []string {

0 commit comments

Comments
 (0)