]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
hashmap_get{,_from_hash} return "struct hashmap_entry *"
authorEric Wong <e@80x24.org>
Sun, 6 Oct 2019 23:30:36 +0000 (23:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Oct 2019 01:20:11 +0000 (10:20 +0900)
commitf23a465132a22860684ac66052cf9a954a18e27d
tree0af87116e641be6cc7f7dc75e1a337e917abc610
parentf0e63c41139f8982add435536d39aff6f3d4ca98
hashmap_get{,_from_hash} return "struct hashmap_entry *"

Update callers to use hashmap_get_entry, hashmap_get_entry_from_hash
or container_of as appropriate.

This is another step towards eliminating the requirement of
hashmap_entry being the first field in a struct.

Signed-off-by: Eric Wong <e@80x24.org>
Reviewed-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 files changed:
attr.c
blame.c
builtin/describe.c
builtin/difftool.c
builtin/fast-export.c
builtin/fetch.c
config.c
hashmap.c
hashmap.h
merge-recursive.c
name-hash.c
packfile.c
patch-ids.c
ref-filter.c
refs.c
remote.c
revision.c
sequencer.c
sub-process.c
submodule-config.c