diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-10-30 11:38:38 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-30 07:09:52 -0700 |
| commit | e78ab370545d81a950fa3b2701dd7c72015ee802 (patch) | |
| tree | 53418ee76a2581c17bc53e50a8c12087202203c7 /commit-graph.c | |
| parent | Merge branch 'ps/remove-packfile-store-get-packs' into ps/packed-git-in-objec... (diff) | |
| download | git-e78ab370545d81a950fa3b2701dd7c72015ee802.tar.gz git-e78ab370545d81a950fa3b2701dd7c72015ee802.zip | |
packfile: use a `strmap` to store packs by name
To allow fast lookups of a packfile by name we use a hashmap that has
the packfile name as key and the pack itself as value. But while this is
the perfect use case for a `strmap`, we instead use `struct hashmap` and
store the hashmap entry in the packfile itself.
Simplify the code by using a `strmap` instead.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
