Commit aa30162
bitmap: move
The `write_selected_commits_v1` function takes care of writing commit
positions along with their corresponding bitmaps in the disk. It is
OK because this `search commit position of a given commit` algorithm
is needed only once here. But in later changes of the `lookup table
extension series`, we need same commit positions which means we have
to run the above mentioned algorithm one more time.
Move the `search commit position of a given commit` algorithm to
`bitmap_writer_finish()` and use the `commit_positions` array
to get commit positions of their corresponding bitmaps.
Signed-off-by: Abhradeep Chakraborty <[email protected]>
Reviewed-by: Taylor Blau <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>get commit positions code to bitmap_writer_finish
1 parent e9977b1 commit aa30162
1 file changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
| 653 | + | |
| 654 | + | |
654 | 655 | | |
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
| 661 | + | |
667 | 662 | | |
668 | 663 | | |
669 | 664 | | |
| |||
697 | 692 | | |
698 | 693 | | |
699 | 694 | | |
| 695 | + | |
| 696 | + | |
700 | 697 | | |
701 | 698 | | |
702 | 699 | | |
| |||
715 | 712 | | |
716 | 713 | | |
717 | 714 | | |
718 | | - | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
719 | 729 | | |
720 | 730 | | |
721 | 731 | | |
| |||
730 | 740 | | |
731 | 741 | | |
732 | 742 | | |
| 743 | + | |
733 | 744 | | |
0 commit comments