Commit 022c297
committed
fix: address PR review -- 4 verified findings
1. Add -> int return annotation to index_repository_with_progress
2. Skip incremental indexing when include_paths is set (incremental_index_repository
uses git diff which doesn't understand subset boundaries)
3. Move blocking rglob() out of async handler into _scan_directories() sync helper,
called via asyncio.to_thread() to avoid blocking the event loop on large repos
4. Replace full-repo rglob + startswith filter in _discover_code_files with targeted
subtree walking (only iterate include_paths dirs) -- eliminates prefix collision
risk (packages/effectx no longer matches packages/effect)1 parent 781fdd2 commit 022c297
2 files changed
Lines changed: 55 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 181 | + | |
| 182 | + | |
187 | 183 | | |
188 | | - | |
189 | | - | |
| 184 | + | |
| 185 | + | |
190 | 186 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | 187 | | |
| 188 | + | |
198 | 189 | | |
199 | 190 | | |
200 | 191 | | |
201 | | - | |
202 | | - | |
203 | 192 | | |
204 | 193 | | |
205 | 194 | | |
| |||
210 | 199 | | |
211 | 200 | | |
212 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
213 | 222 | | |
214 | 223 | | |
215 | 224 | | |
| |||
341 | 350 | | |
342 | 351 | | |
343 | 352 | | |
| 353 | + | |
| 354 | + | |
344 | 355 | | |
| 356 | + | |
345 | 357 | | |
346 | | - | |
| 358 | + | |
347 | 359 | | |
348 | 360 | | |
349 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
128 | 130 | | |
129 | 131 | | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
| |||
704 | 714 | | |
705 | 715 | | |
706 | 716 | | |
707 | | - | |
| 717 | + | |
708 | 718 | | |
709 | 719 | | |
710 | 720 | | |
| |||
0 commit comments