MCPcopy Index your code
hub / github.com/git/git / pseudo_merge_commit_pos_cmp

Function pseudo_merge_commit_pos_cmp

pack-bitmap-write.c:1148–1160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146}
1147
1148static 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
1162static void write_pseudo_merges(struct bitmap_writer *writer,
1163 struct hashfile *f)

Callers

nothing calls this directly

Calls 1

find_object_posFunction · 0.85

Tested by

no test coverage detected