| 1146 | } |
| 1147 | |
| 1148 | static int pseudo_merge_commit_pos_cmp(const void *_va, const void *_vb, |
| 1149 | void *_data) |
| 1150 | { |
| 1151 | struct bitmap_writer *writer = _data; |
| 1152 | uint32_t pos_a = find_object_pos(writer, _va, NULL); |
| 1153 | uint32_t pos_b = find_object_pos(writer, _vb, NULL); |
| 1154 | |
| 1155 | if (pos_a < pos_b) |
| 1156 | return -1; |
| 1157 | if (pos_a > pos_b) |
| 1158 | return 1; |
| 1159 | return 0; |
| 1160 | } |
| 1161 | |
| 1162 | static void write_pseudo_merges(struct bitmap_writer *writer, |
| 1163 | struct hashfile *f) |
nothing calls this directly
no test coverage detected