Commit 41b42e3
packfile: expose function to read object stream for an offset
The function `packfile_store_read_object_stream()` takes as input an
object ID and then constructs a `struct odb_read_stream` from it. In a
subsequent commit we'll want to create an object stream for a given
combination of packfile and offset though, which is not something that
can currently be done.
Extract a new function `packfile_read_object_stream()` that makes this
functionality available.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 10a6762 commit 41b42e3
2 files changed
Lines changed: 29 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2553 | 2553 | | |
2554 | 2554 | | |
2555 | 2555 | | |
2556 | | - | |
2557 | | - | |
2558 | | - | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
2559 | 2560 | | |
2560 | 2561 | | |
2561 | 2562 | | |
2562 | | - | |
2563 | 2563 | | |
2564 | 2564 | | |
2565 | 2565 | | |
2566 | | - | |
| 2566 | + | |
| 2567 | + | |
2567 | 2568 | | |
2568 | | - | |
2569 | | - | |
2570 | | - | |
2571 | | - | |
| 2569 | + | |
2572 | 2570 | | |
2573 | 2571 | | |
2574 | | - | |
2575 | | - | |
2576 | | - | |
2577 | | - | |
2578 | | - | |
2579 | 2572 | | |
2580 | 2573 | | |
2581 | 2574 | | |
| 2575 | + | |
| 2576 | + | |
| 2577 | + | |
2582 | 2578 | | |
2583 | 2579 | | |
2584 | 2580 | | |
| |||
2592 | 2588 | | |
2593 | 2589 | | |
2594 | 2590 | | |
2595 | | - | |
2596 | | - | |
| 2591 | + | |
| 2592 | + | |
2597 | 2593 | | |
2598 | 2594 | | |
2599 | 2595 | | |
2600 | 2596 | | |
2601 | 2597 | | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
439 | 444 | | |
440 | 445 | | |
441 | 446 | | |
| |||
0 commit comments