Skip to content

Commit 38267bb

Browse files
author
kuba--
committed
Set index for commitFilesRowIter.
Signed-off-by: kuba-- <[email protected]>
1 parent ff072ec commit 38267bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

commit_files.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,16 @@ func (t *commitFilesTable) PartitionRows(
102102
return nil, err
103103
}
104104

105+
var index sql.IndexValueIter
106+
if t.index != nil {
107+
if index, err = t.index.Values(p); err != nil {
108+
return nil, err
109+
}
110+
}
111+
105112
return &commitFilesRowIter{
106113
repo: repo,
114+
index: index,
107115
commitHashes: stringsToHashes(hashes),
108116
paths: paths,
109117
skipGitErrors: shouldSkipErrors(ctx),

0 commit comments

Comments
 (0)