summaryrefslogtreecommitdiff
path: root/t/t3308-notes-merge.sh
diff options
context:
space:
mode:
authorLibravatar Elijah Newren <newren@gmail.com>2020-11-02 18:55:06 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-02 12:15:50 -0800
commitae20bf1ad98bdc716879a8da99e7f329e3cc2730 (patch)
tree51464c9f9ae8ad2f3e538d324f44ca62dd638c0c /t/t3308-notes-merge.sh
parenthashmap: provide deallocation function names (diff)
downloadtgif-ae20bf1ad98bdc716879a8da99e7f329e3cc2730.tar.xz
strmap: new utility functions
Add strmap as a new struct and associated utility functions, specifically for hashmaps that map strings to some value. The API is taken directly from Peff's proposal at https://lore.kernel.org/git/20180906191203.GA26184@sigill.intra.peff.net/ Note that similar string-list, I have a strdup_strings setting. However, unlike string-list, strmap_init() does not take a parameter for this setting and instead automatically sets it to 1; callers who want to control this detail need to instead call strmap_init_with_options(). (Future patches will add additional parameters to strmap_init_with_options()). Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3308-notes-merge.sh')
0 files changed, 0 insertions, 0 deletions