]> git.ipfire.org Git - thirdparty/git.git/commit
Use new HASHMAP_INIT macro to simplify hashmap initialization
authorElijah Newren <newren@gmail.com>
Wed, 11 Nov 2020 20:02:20 +0000 (20:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Nov 2020 20:55:27 +0000 (12:55 -0800)
commitb19315d8ab46ae50410dba9228a4c08ae5c73e38
treef473f15041b2f515f50aacdda428825e884eb18d
parent23a276a9c4c8945aadbc323e12c970816eb43c27
Use new HASHMAP_INIT macro to simplify hashmap initialization

Now that hashamp has lazy initialization and a HASHMAP_INIT macro,
hashmaps allocated on the stack can be initialized without a call to
hashmap_init() and in some cases makes the code a bit shorter.  Convert
some callsites over to take advantage of this.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
bloom.c
builtin/difftool.c
range-diff.c
revision.c
t/helper/test-hashmap.c