Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit cd4d788

Browse files
chore: Add doc comment for DiffOptions.Paths (#63385)
Was confused on reading some of our code, which is not setting this value in the way that is expected when attempting to handle range re-mapping for precise code nav.
1 parent 5cf81e0 commit cd4d788

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/gitserver/client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ type DiffOptions struct {
318318
// For a nice visual explanation of ".." vs "...", see https://stackoverflow.com/a/46345364/2682729
319319
RangeType string
320320

321+
// Paths specifies the paths to filter for during diffing.
322+
//
323+
// NOTE: Rename detection does not work if only the old path or the new path
324+
// is specified in this slice.
321325
Paths []string
322326
}
323327

0 commit comments

Comments
 (0)