]> git.ipfire.org Git - thirdparty/git.git/blobdiff - patch-ids.c
Merge branch 'bc/smart-http-atomic-push'
[thirdparty/git.git] / patch-ids.c
index 75f8c9f1a11e05e8cd6145241178d3b0cae62e40..12aa6d494b4ed47d1a486307b6b9d9024ee78734 100644 (file)
@@ -71,7 +71,7 @@ int init_patch_ids(struct repository *r, struct patch_ids *ids)
 
 int free_patch_ids(struct patch_ids *ids)
 {
-       hashmap_free(&ids->patches, 1);
+       hashmap_free_entries(&ids->patches, struct patch_id, ent);
        return 0;
 }
 
@@ -101,8 +101,7 @@ struct patch_id *has_commit_patch_id(struct commit *commit,
        if (init_patch_id_entry(&patch, commit, ids))
                return NULL;
 
-       return hashmap_get_entry(&ids->patches, &patch, NULL,
-                                       struct patch_id, ent);
+       return hashmap_get_entry(&ids->patches, &patch, ent, NULL);
 }
 
 struct patch_id *add_commit_patch_id(struct commit *commit,