Commit e6f875e
for_each_loose_file_in_objdir: take an optional strbuf path
We feed a root "objdir" path to this iterator function,
which then copies the result into a strbuf, so that it can
repeatedly append the object sub-directories to it. Let's
make it easy for callers to just pass us a strbuf in the
first place.
We leave the original interface as a convenience for callers
who want to just pass a const string like the result of
get_object_directory().
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 189a122 commit e6f875e
2 files changed
+30
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1259 | 1263 | | |
1260 | 1264 | | |
1261 | 1265 | | |
| |||
1271 | 1275 | | |
1272 | 1276 | | |
1273 | 1277 | | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1274 | 1283 | | |
1275 | 1284 | | |
1276 | 1285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3358 | 3358 | | |
3359 | 3359 | | |
3360 | 3360 | | |
3361 | | - | |
| 3361 | + | |
3362 | 3362 | | |
3363 | 3363 | | |
3364 | 3364 | | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | | - | |
3368 | | - | |
| 3367 | + | |
3369 | 3368 | | |
3370 | 3369 | | |
3371 | 3370 | | |
3372 | | - | |
3373 | | - | |
3374 | | - | |
3375 | | - | |
3376 | 3371 | | |
3377 | | - | |
3378 | | - | |
| 3372 | + | |
| 3373 | + | |
3379 | 3374 | | |
3380 | | - | |
| 3375 | + | |
3381 | 3376 | | |
3382 | 3377 | | |
3383 | 3378 | | |
3384 | 3379 | | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
| 3386 | + | |
| 3387 | + | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
3385 | 3395 | | |
| 3396 | + | |
3386 | 3397 | | |
3387 | 3398 | | |
3388 | 3399 | | |
| |||
0 commit comments