commit - e9371be612bea2c580aec05a65644f6585e31f42
commit + fc457d247e3308a380ad2a41fd5a81c048625751
blob - 0b569f983f714418bd0c72d32c121cc4fbdf8676
blob + 2c40dd27410656d72dc97861165aa3e079c53685
--- lib/pack_create.c
+++ lib/pack_create.c
for (i = 0; i < nhead; i++) {
struct got_object_id *id = head[i];
- int j, color = COLOR_KEEP;
-
if (id == NULL)
continue;
-
- for (j = 0; j < ntail; j++) {
- if (tail[j] != NULL &&
- got_object_id_cmp(id, tail[j]) == 0) {
- color = COLOR_DROP;
- break;
- }
- }
-
- err = queue_commit_or_tag_id(id, color, &ids, repo);
+ err = queue_commit_or_tag_id(id, COLOR_KEEP, &ids, repo);
if (err)
goto done;
}