|
|
|
@ -159,7 +159,7 @@ line-based diffs. Line-diffs struggle if there are a small number of
|
|
|
|
common lines. The more precise, granular behaviour of tree diffs makes
|
|
|
|
common lines. The more precise, granular behaviour of tree diffs makes
|
|
|
|
this problem much more common though.
|
|
|
|
this problem much more common though.
|
|
|
|
|
|
|
|
|
|
|
|
## Similar Comments
|
|
|
|
## Matching Substrings In Comments
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
// Before
|
|
|
|
// Before
|
|
|
|
@ -171,9 +171,9 @@ foobar();
|
|
|
|
foobaz();
|
|
|
|
foobaz();
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
`foobar` and `foobaz` are completely different, and should never be
|
|
|
|
`foobar` and `foobaz` are completely different, and their common
|
|
|
|
matched up. For comments, we'd rather match up comments that are
|
|
|
|
prefix `fooba` should not be matched up. However, matching common
|
|
|
|
textually similar.
|
|
|
|
prefixes or suffixes for comments is desirable.
|
|
|
|
|
|
|
|
|
|
|
|
## Multiline Comments
|
|
|
|
## Multiline Comments
|
|
|
|
|
|
|
|
|
|
|
|
|